diff options
-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, |