From 8357b788013c89addafbe310305d4657c6f05a2a Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Tue, 12 Jan 2021 09:40:38 +0100 Subject: openpgp: Fix examples. - Actually use the functions being documented. --- openpgp/src/cert/bundle.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openpgp/src/cert/bundle.rs b/openpgp/src/cert/bundle.rs index d37f5158..c8a01656 100644 --- a/openpgp/src/cert/bundle.rs +++ b/openpgp/src/cert/bundle.rs @@ -397,7 +397,7 @@ impl ComponentBundle { /// for (i, ka) in cert.keys().enumerate() { /// eprintln!("Key #{} ({}) has {:?} self signatures", /// i, ka.fingerprint(), - /// ka.self_signatures().count()); + /// ka.bundle().self_signatures().len()); /// } /// # Ok(()) } /// ``` @@ -426,7 +426,7 @@ impl ComponentBundle { /// for ua in cert.userids() { /// eprintln!("User ID {} has {:?} unverified, third-party certifications", /// String::from_utf8_lossy(ua.userid().value()), - /// ua.certifications().count()); + /// ua.bundle().certifications().len()); /// } /// # Ok(()) } /// ``` @@ -456,7 +456,7 @@ impl ComponentBundle { /// for u in cert.userids() { /// eprintln!("User ID {} has {:?} revocation certificates.", /// String::from_utf8_lossy(u.userid().value()), - /// u.self_revocations().count()); + /// u.bundle().self_revocations().len()); /// } /// # Ok(()) } /// ``` @@ -486,7 +486,7 @@ impl ComponentBundle { /// for u in cert.userids() { /// eprintln!("User ID {} has {:?} unverified, third-party revocation certificates.", /// String::from_utf8_lossy(u.userid().value()), - /// u.other_revocations().count()); + /// u.bundle().other_revocations().len()); /// } /// # Ok(()) } /// ``` -- cgit v1.2.3