summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--openpgp/src/crypto/hash.rs2
-rw-r--r--openpgp/src/crypto/mod.rs2
2 files changed, 2 insertions, 2 deletions
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].
//!