diff --git a/identity/src/rsa.rs b/identity/src/rsa.rs index b14d8c66d86..00c4b65a3bc 100644 --- a/identity/src/rsa.rs +++ b/identity/src/rsa.rs @@ -105,7 +105,7 @@ impl PublicKey { self.0.clone() } - /// Encode the RSA public key in DER as a X.509 SubjectPublicKeyInfo structure, + /// Encode the RSA public key in DER as an X.509 SubjectPublicKeyInfo structure, /// as defined in [RFC5280]. /// /// [RFC5280]: https://tools.ietf.org/html/rfc5280#section-4.1 diff --git a/misc/keygen/src/main.rs b/misc/keygen/src/main.rs index 4c4d3bfbf66..023bc34d81b 100644 --- a/misc/keygen/src/main.rs +++ b/misc/keygen/src/main.rs @@ -42,7 +42,7 @@ enum Command { }, } -// Due to the fact that a peer id uses a SHA-256 multihash, it always starts with the +// Due to the fact that a peer id uses an SHA-256 multihash, it always starts with the // bytes 0x1220, meaning that only some characters are valid. const ALLOWED_FIRST_BYTE: &[u8] = b"NPQRSTUVWXYZ"; diff --git a/misc/multistream-select/src/protocol.rs b/misc/multistream-select/src/protocol.rs index 93cd4ac02b5..9b015c3c502 100644 --- a/misc/multistream-select/src/protocol.rs +++ b/misc/multistream-select/src/protocol.rs @@ -120,7 +120,7 @@ impl fmt::Display for Protocol { /// A multistream-select protocol message. /// /// Multistream-select protocol messages are exchanged with the goal -/// of agreeing on a application-layer protocol to use on an I/O stream. +/// of agreeing on an application-layer protocol to use on an I/O stream. #[derive(Debug, Clone, PartialEq, Eq)] pub(crate) enum Message { /// A header message identifies the multistream-select protocol