summaryrefslogtreecommitdiffstats
path: root/net/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'net/src/lib.rs')
-rw-r--r--net/src/lib.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/net/src/lib.rs b/net/src/lib.rs
index 2537fee8..bab1b8ff 100644
--- a/net/src/lib.rs
+++ b/net/src/lib.rs
@@ -19,12 +19,14 @@
//! # extern crate sequoia_net;
//! # use openpgp::types::KeyId;
//! # use sequoia_core::Context;
-//! # use sequoia_net::KeyServer;
-//! # fn main() {
-//! let ctx = Context::new("org.sequoia-pgp.example").unwrap();
-//! let mut ks = KeyServer::sks_pool(&ctx).unwrap();
+//! # use sequoia_net::{KeyServer, Result};
+//! # fn main() { f().unwrap(); }
+//! # fn f() -> Result<()> {
+//! let ctx = Context::new("org.sequoia-pgp.example")?;
+//! let mut ks = KeyServer::sks_pool(&ctx)?;
//! let keyid = KeyId::from_hex("31855247603831FD").unwrap();
//! println!("{:?}", ks.get(&keyid));
+//! Ok(())
//! # }
//! ```