diff options
Diffstat (limited to 'openpgp/src/cert/amalgamation/key.rs')
-rw-r--r-- | openpgp/src/cert/amalgamation/key.rs | 3 |
1 files changed, 2 insertions, 1 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() { |