summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJustus Winter <justus@pep-project.org>2017-12-12 14:46:58 +0100
committerJustus Winter <justus@pep-project.org>2017-12-12 14:56:29 +0100
commit79bf350ea260356842b7005fba955a30b082fdcd (patch)
tree168d9b83138dc12c6b2c031adaa393660bad173b /src
parentbdb0b22b92f1c33edaae168cf299a0eda2e8c33d (diff)
Fix sample code.
Diffstat (limited to 'src')
-rw-r--r--src/net/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/mod.rs b/src/net/mod.rs
index c1667ee8..c224f199 100644
--- a/src/net/mod.rs
+++ b/src/net/mod.rs
@@ -13,10 +13,10 @@
//!
//! [SKS keyserver]: https://www.sks-keyservers.net/overview-of-pools.php#pool_hkps
//!
-//! ```
+//! ```no_run
//! # use sequoia::net;
//! # use sequoia::openpgp::types::KeyId;
-//! let ctx = sequoia::Context::new("org.sequoia-pgp.example").finalize().unwrap();
+//! let ctx = sequoia::Context::new("org.sequoia-pgp.example").unwrap();
//! let mut ks = net::KeyServer::sks_pool(&ctx).unwrap();
//! let keyid = KeyId::from_hex("31855247603831FD").unwrap();
//! println!("{:?}", ks.get(&keyid));