From 1a3565b4cd4720273701389688035fd97d340604 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Tue, 4 Aug 2020 16:42:44 +0200 Subject: openpgp: Improve documentation. - See #474. --- openpgp/src/crypto/hash.rs | 2 +- openpgp/src/crypto/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'openpgp/src') diff --git a/openpgp/src/crypto/hash.rs b/openpgp/src/crypto/hash.rs index a74b4c28..82add847 100644 --- a/openpgp/src/crypto/hash.rs +++ b/openpgp/src/crypto/hash.rs @@ -60,7 +60,7 @@ dyn_clone::clone_trait_object!(Digest); /// # Examples /// /// ```rust -/// # f().unwrap(); fn f() -> sequoia_openpgp::Result<()> { +/// # fn main() -> sequoia_openpgp::Result<()> { /// use sequoia_openpgp::types::HashAlgorithm; /// /// // Create a context and feed data to it. diff --git a/openpgp/src/crypto/mod.rs b/openpgp/src/crypto/mod.rs index eccd1b7c..cbf23751 100644 --- a/openpgp/src/crypto/mod.rs +++ b/openpgp/src/crypto/mod.rs @@ -11,7 +11,7 @@ //! //! # Common Operations //! -//! - *Converting a string to a `Password`*: Use [`Password::from`]. +//! - *Converting a string to a [`Password`]*: Use [`Password::from`]. //! - *Create a session key*: Use [`SessionKey::new`]. //! - *Use secret keys*: See the [`KeyPair` example]. //! -- cgit v1.2.3