summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2021-01-12 09:40:38 +0100
committerJustus Winter <justus@sequoia-pgp.org>2021-01-12 10:08:22 +0100
commit8357b788013c89addafbe310305d4657c6f05a2a (patch)
treeae5f2d9b1413fde78cfac243bfda3c076182c74b
parent5ce7fad7c87a08d2dd9a93a3f7dbf21aca0515c8 (diff)
openpgp: Fix examples.
- Actually use the functions being documented.
-rw-r--r--openpgp/src/cert/bundle.rs8
1 files 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<C> ComponentBundle<C> {
/// 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<C> ComponentBundle<C> {
/// 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<C> ComponentBundle<C> {
/// 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<C> ComponentBundle<C> {
/// 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(()) }
/// ```