summaryrefslogtreecommitdiffstats
path: root/openpgp/src/cert/amalgamation
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/cert/amalgamation')
-rw-r--r--openpgp/src/cert/amalgamation/key.rs3
-rw-r--r--openpgp/src/cert/amalgamation/key/iter.rs4
2 files changed, 4 insertions, 3 deletions
diff --git a/openpgp/src/cert/amalgamation/key.rs b/openpgp/src/cert/amalgamation/key.rs
index f8fbaa01..5962ea4b 100644
--- a/openpgp/src/cert/amalgamation/key.rs
+++ b/openpgp/src/cert/amalgamation/key.rs
@@ -154,7 +154,8 @@
//! # CertBuilder::general_purpose(None, Some("alice@example.org"))
//! # .generate()?;
//! # let timestamp = None;
-//! # let issuer = cert.fingerprint();
+//! # let issuer = cert.with_policy(p, None)?.keys()
+//! # .for_signing().nth(0).unwrap().fingerprint();
//! # let mut i = 0;
//! let cert = cert.with_policy(p, timestamp)?;
//! if let RevocationStatus::Revoked(_) = cert.revocation_status() {
diff --git a/openpgp/src/cert/amalgamation/key/iter.rs b/openpgp/src/cert/amalgamation/key/iter.rs
index 0601c2f0..53a72f79 100644
--- a/openpgp/src/cert/amalgamation/key/iter.rs
+++ b/openpgp/src/cert/amalgamation/key/iter.rs
@@ -434,7 +434,7 @@ impl<'a, P, R> KeyAmalgamationIter<'a, P, R>
/// // Use it.
/// # i += 1;
/// }
- /// # assert_eq!(i, 2);
+ /// # assert_eq!(i, 3);
/// # Ok(()) }
/// ```
pub fn supported(mut self) -> Self {
@@ -1553,7 +1553,7 @@ impl<'a, P, R> ValidKeyAmalgamationIter<'a, P, R>
/// // Use it.
/// # i += 1;
/// }
- /// # assert_eq!(i, 2);
+ /// # assert_eq!(i, 3);
/// # Ok(()) }
/// ```
pub fn supported(mut self) -> Self {