diff options
author | Justus Winter <justus@pep-project.org> | 2017-12-12 14:46:58 +0100 |
---|---|---|
committer | Justus Winter <justus@pep-project.org> | 2017-12-12 14:56:29 +0100 |
commit | 79bf350ea260356842b7005fba955a30b082fdcd (patch) | |
tree | 168d9b83138dc12c6b2c031adaa393660bad173b /src | |
parent | bdb0b22b92f1c33edaae168cf299a0eda2e8c33d (diff) |
Fix sample code.
Diffstat (limited to 'src')
-rw-r--r-- | src/net/mod.rs | 4 |
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)); |