summaryrefslogtreecommitdiffstats
path: root/openpgp/src/cert/bindings.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/cert/bindings.rs')
-rw-r--r--openpgp/src/cert/bindings.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/cert/bindings.rs b/openpgp/src/cert/bindings.rs
index 40a326d8..582ff705 100644
--- a/openpgp/src/cert/bindings.rs
+++ b/openpgp/src/cert/bindings.rs
@@ -39,7 +39,7 @@ impl<P: key::KeyParts> Key<P, key::SubordinateRole> {
///
/// // Let's add an encryption subkey.
/// let flags = KeyFlags::default().set_storage_encryption(true);
- /// assert_eq!(cert.keys().set_policy(p, None).alive().revoked(false)
+ /// assert_eq!(cert.keys().with_policy(p, None).alive().revoked(false)
/// .key_flags(&flags).count(),
/// 0);
///
@@ -56,7 +56,7 @@ impl<P: key::KeyParts> Key<P, key::SubordinateRole> {
/// binding.into()])?;
///
/// // Check that we have an encryption subkey.
- /// assert_eq!(cert.keys().set_policy(p, None).alive().revoked(false)
+ /// assert_eq!(cert.keys().with_policy(p, None).alive().revoked(false)
/// .key_flags(flags).count(),
/// 1);
/// # Ok(()) }