summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2022-02-25 14:05:52 +0100
committerJustus Winter <justus@sequoia-pgp.org>2022-02-25 15:02:51 +0100
commit73492eb5417f670d9002a0cb4960e5ddd3b944f0 (patch)
treed0a1383252c26ead423c9efa9df0a557da911088
parent7e158e6b7c878bccef77c2f524a9c25128577cbf (diff)
openpgp: Improve documentation.
-rw-r--r--openpgp/src/cert/builder.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/openpgp/src/cert/builder.rs b/openpgp/src/cert/builder.rs
index 2b1a53ce..43cadc18 100644
--- a/openpgp/src/cert/builder.rs
+++ b/openpgp/src/cert/builder.rs
@@ -973,8 +973,8 @@ impl CertBuilder<'_> {
/// Adds a custom subkey.
///
- /// If `expiration` is `None`, the subkey uses the same expiration
- /// time as the primary key.
+ /// If `validity` is `None`, the subkey will be valid for the same
+ /// period as the primary key.
///
/// Likewise, if `cs` is `None`, the same cipher suite is used as
/// for the primary key.
@@ -1056,6 +1056,9 @@ impl CertBuilder<'_> {
///
/// [`SubkeyBinding`]: crate::types::SignatureType::SubkeyBinding
///
+ /// If `validity` is `None`, the subkey will be valid for the same
+ /// period as the primary key.
+ ///
/// # Examples
///
/// This example binds a signing subkey to a certificate,