diff options
Diffstat (limited to 'openpgp/src/types/timestamp.rs')
-rw-r--r-- | openpgp/src/types/timestamp.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/types/timestamp.rs b/openpgp/src/types/timestamp.rs index 53f84987..aa60812c 100644 --- a/openpgp/src/types/timestamp.rs +++ b/openpgp/src/types/timestamp.rs @@ -129,13 +129,13 @@ impl Timestamp { /// /// /// First, get the certification key. /// let mut keypair = - /// alice.keys().set_policy(policy, t).secret().for_certification() + /// alice.keys().with_policy(policy, t).secret().for_certification() /// .nth(0).ok_or_else(|| failure::err_msg("no valid key at"))? /// .key().clone().into_keypair()?; /// /// // Then, lookup the binding between `bob@example.org` and /// // `bob` at `t`. - /// let ca = bob.userids().set_policy(policy, t) + /// let ca = bob.userids().with_policy(policy, t) /// .filter(|ca| ca.userid().value() == b"bob@example.org") /// .nth(0).ok_or_else(|| failure::err_msg("no valid userid"))?; /// |