Skip to content

Commit

Permalink
chore: fix some comments (#1434)
Browse files Browse the repository at this point in the history
Signed-off-by: wangcundashang <wangcundashang@qq.com>
  • Loading branch information
wangcundashang committed Jun 20, 2024
1 parent 8ced406 commit 5779544
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion der/src/asn1/real.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ mod tests {

#[test]
fn encdec_normal() {
// The comments correspond to the decoded value from the ASN.1 playground when the bytes are inputed.
// The comments correspond to the decoded value from the ASN.1 playground when the bytes are inputted.
{
// rec1value R ::= 0
let val = 0.0;
Expand Down
4 changes: 2 additions & 2 deletions spki/src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ pub trait SignatureAlgorithmIdentifier {
/// Algorithm parameters.
type Params: Tagged + EncodeValue;

/// `AlgorithmIdentifier` for the corresponding singature system.
/// `AlgorithmIdentifier` for the corresponding signature system.
const SIGNATURE_ALGORITHM_IDENTIFIER: AlgorithmIdentifier<Self::Params>;
}

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

Expand Down
2 changes: 1 addition & 1 deletion x509-cert/src/ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub struct Extension {
/// [RFC 5280 Section 4.1.2.9]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.9
pub type Extensions = alloc::vec::Vec<Extension>;

/// Trait to be implemented by extensions to allow them to be formated as x509 v3 extensions by
/// Trait to be implemented by extensions to allow them to be formatted as x509 v3 extensions by
/// builder.
pub trait AsExtension: AssociatedOid + der::Encode {
/// Should the extension be marked critical
Expand Down
2 changes: 1 addition & 1 deletion x509-cert/tests/certificate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ fn load_certificate_chains() {

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

0 comments on commit 5779544

Please sign in to comment.