summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-08-04 16:42:44 +0200
committerJustus Winter <justus@sequoia-pgp.org>2020-08-04 16:42:44 +0200
commit1a3565b4cd4720273701389688035fd97d340604 (patch)
tree29817df887d4ca37bbd6d99d749c802e4dcb34f9
parentc9d4d70b94c8440c8cb74e2dedffa8d8dc214866 (diff)
openpgp: Improve documentation.
- See #474.
-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].
//!