summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJustus Winter <justus@pep-project.org>2017-12-14 12:08:39 +0100
committerJustus Winter <justus@pep-project.org>2017-12-14 12:12:16 +0100
commitd80968f07677fe0a1296df012dd17ca665c5f4ae (patch)
treef8f3ae9cf49188acab63e017925dd3234cb7890b /core
parent2aeb3b157638423d14976cbeaa4727769761067e (diff)
core: Improve the doctests.
- Demonstrate changing the network policy instead of the home directory. This is more robust.
Diffstat (limited to 'core')
-rw-r--r--core/src/lib.rs8
1 files changed, 4 insertions, 4 deletions
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);