summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-01-21 13:29:01 +0100
committerJustus Winter <justus@sequoia-pgp.org>2020-01-21 13:30:50 +0100
commit48b3a1c9b2ca24540c3dd23d2f28620c6477703d (patch)
tree2507c4ad14a5a3988c8b9b9eb9449b7b9d594d84
parent4ade8f621302ee094dcd7a5f7d3bbe61fb296940 (diff)
openpgp: Improve docs.
-rw-r--r--openpgp/src/cert/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/cert/mod.rs b/openpgp/src/cert/mod.rs
index a2253b56..6debdcf4 100644
--- a/openpgp/src/cert/mod.rs
+++ b/openpgp/src/cert/mod.rs
@@ -642,8 +642,8 @@ impl Cert {
/// Sets the key to expire in delta.
///
- /// Note: the time is relative to the key's creation time, not the
- /// current time!
+ /// Note: the time is relative to the primary key's creation time,
+ /// not the current time!
pub fn set_expiry(self, primary_signer: &mut dyn Signer,
expiration: Option<time::Duration>)
-> Result<Cert>