Skip to content

Commit 4154ef3

Browse files
committed
Tweak docstring for PublicKeyData::subject_public_key_info()
1 parent 88ae43f commit 4154ef3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rcgen/src/key_pair.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -697,9 +697,9 @@ impl PublicKeyData for SubjectPublicKeyInfo {
697697

698698
/// The public key data of a key pair
699699
pub trait PublicKeyData {
700-
/// The subject public key info, in DER format
700+
/// The public key data in DER format
701701
///
702-
/// The key is formatted according to the SubjectPublicKeyInfo struct of X.509.
702+
/// The key is formatted according to the X.509 SubjectPublicKeyInfo struct.
703703
/// See [RFC 5280 section 4.1](https://tools.ietf.org/html/rfc5280#section-4.1).
704704
fn subject_public_key_info(&self) -> Vec<u8> {
705705
yasna::construct_der(|writer| serialize_public_key_der(self, writer))

0 commit comments

Comments
 (0)