summaryrefslogtreecommitdiffstats
path: root/openpgp/src/cert/builder.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/cert/builder.rs')
-rw-r--r--openpgp/src/cert/builder.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/openpgp/src/cert/builder.rs b/openpgp/src/cert/builder.rs
index 627bd4f0..7a50ac66 100644
--- a/openpgp/src/cert/builder.rs
+++ b/openpgp/src/cert/builder.rs
@@ -342,7 +342,8 @@ impl CertBuilder<'_> {
/// Some("Alice Lovelace <alice@example.org>"))
/// .set_creation_time(t)
/// .generate()?;
- /// assert_eq!(cert.primary_key().self_signatures()[0].signature_creation_time(),
+ /// assert_eq!(cert.primary_key().self_signatures().nth(0).unwrap()
+ /// .signature_creation_time(),
/// Some(t));
/// # Ok(())
/// # }