diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2022-02-25 14:05:52 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2022-02-25 15:02:51 +0100 |
commit | 73492eb5417f670d9002a0cb4960e5ddd3b944f0 (patch) | |
tree | d0a1383252c26ead423c9efa9df0a557da911088 /openpgp/src/cert | |
parent | 7e158e6b7c878bccef77c2f524a9c25128577cbf (diff) |
openpgp: Improve documentation.
Diffstat (limited to 'openpgp/src/cert')
-rw-r--r-- | openpgp/src/cert/builder.rs | 7 |
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, |