summaryrefslogtreecommitdiffstats
path: root/openpgp/src/types/timestamp.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/types/timestamp.rs')
-rw-r--r--openpgp/src/types/timestamp.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/types/timestamp.rs b/openpgp/src/types/timestamp.rs
index aa60812c..b512fa35 100644
--- a/openpgp/src/types/timestamp.rs
+++ b/openpgp/src/types/timestamp.rs
@@ -112,14 +112,14 @@ impl Timestamp {
/// // Generate a Cert for Alice.
/// let (alice, _) = CertBuilder::new()
/// .set_creation_time(now.checked_sub(Duration::weeks(2)?).unwrap())
- /// .primary_key_flags(KeyFlags::default().set_certification(true))
+ /// .set_primary_key_flags(KeyFlags::default().set_certification(true))
/// .add_userid("alice@example.org")
/// .generate()?;
///
/// // Generate a Cert for Bob.
/// let (bob, _) = CertBuilder::new()
/// .set_creation_time(now.checked_sub(Duration::weeks(1)?).unwrap())
- /// .primary_key_flags(KeyFlags::default().set_certification(true))
+ /// .set_primary_key_flags(KeyFlags::default().set_certification(true))
/// .add_userid("bob@example.org")
/// .generate()?;
///