From d80968f07677fe0a1296df012dd17ca665c5f4ae Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Thu, 14 Dec 2017 12:08:39 +0100 Subject: core: Improve the doctests. - Demonstrate changing the network policy instead of the home directory. This is more robust. --- core/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core') diff --git a/core/src/lib.rs b/core/src/lib.rs index 1ac45c33..274725c3 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -21,9 +21,9 @@ use std::path::{Path, PathBuf}; /// `Context::configure`: /// /// ``` -/// # use sequoia_core::Context; +/// # use sequoia_core::{Context, NetworkPolicy}; /// let c = Context::configure("org.example.webmail") -/// .home("/tmp/foo") +/// .network_policy(NetworkPolicy::Offline) /// .build().unwrap(); /// ``` pub struct Context { @@ -96,9 +96,9 @@ impl Context { /// `Context::configure`: /// /// ``` -/// # use sequoia_core::Context; +/// # use sequoia_core::{Context, NetworkPolicy}; /// let c = Context::configure("org.example.webmail") -/// .home("/tmp/foo") +/// .network_policy(NetworkPolicy::Offline) /// .build().unwrap(); /// ``` pub struct Config(Context); -- cgit v1.2.3