Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some comments #1434

Merged
merged 1 commit into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading