Skip to content

Commit 5779544

Browse files
chore: fix some comments (#1434)
Signed-off-by: wangcundashang <[email protected]>
1 parent 8ced406 commit 5779544

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

der/src/asn1/real.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ mod tests {
289289

290290
#[test]
291291
fn encdec_normal() {
292-
// The comments correspond to the decoded value from the ASN.1 playground when the bytes are inputed.
292+
// The comments correspond to the decoded value from the ASN.1 playground when the bytes are inputted.
293293
{
294294
// rec1value R ::= 0
295295
let val = 0.0;

spki/src/traits.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ pub trait SignatureAlgorithmIdentifier {
143143
/// Algorithm parameters.
144144
type Params: Tagged + EncodeValue;
145145

146-
/// `AlgorithmIdentifier` for the corresponding singature system.
146+
/// `AlgorithmIdentifier` for the corresponding signature system.
147147
const SIGNATURE_ALGORITHM_IDENTIFIER: AlgorithmIdentifier<Self::Params>;
148148
}
149149

@@ -153,7 +153,7 @@ pub trait SignatureAlgorithmIdentifier {
153153
/// private keys.
154154
#[cfg(feature = "alloc")]
155155
pub trait DynSignatureAlgorithmIdentifier {
156-
/// `AlgorithmIdentifier` for the corresponding singature system.
156+
/// `AlgorithmIdentifier` for the corresponding signature system.
157157
fn signature_algorithm_identifier(&self) -> Result<AlgorithmIdentifierOwned>;
158158
}
159159

x509-cert/src/ext.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub struct Extension {
4444
/// [RFC 5280 Section 4.1.2.9]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.9
4545
pub type Extensions = alloc::vec::Vec<Extension>;
4646

47-
/// Trait to be implemented by extensions to allow them to be formated as x509 v3 extensions by
47+
/// Trait to be implemented by extensions to allow them to be formatted as x509 v3 extensions by
4848
/// builder.
4949
pub trait AsExtension: AssociatedOid + der::Encode {
5050
/// Should the extension be marked critical

x509-cert/tests/certificate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ fn load_certificate_chains() {
453453

454454
#[cfg(feature = "arbitrary")]
455455
#[test]
456-
// Purpose of this check is to ensure the arbitraty trait is provided for certificate variants
456+
// Purpose of this check is to ensure the arbitrary trait is provided for certificate variants
457457
#[allow(unused)]
458458
fn certificate_arbitrary() {
459459
fn check_arbitrary<'a>(_arbitrary: impl arbitrary::Arbitrary<'a>) {}

0 commit comments

Comments
 (0)