Skip to content

Commit

Permalink
Documentation - Typos (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
joey-gm committed Apr 11, 2023
1 parent 155b8ac commit b3aaa04
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/SwiftASN1/ASN1.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1225,7 +1225,7 @@ extension ArraySlice where Element == UInt8 {
let requiredBits = UInt.bitWidth - length.leadingZeroBitCount
switch requiredBits {
case 0...7:
// For 0 to 7 bits, the long form is unnacceptable and we require the short.
// For 0 to 7 bits, the long form is unacceptable and we require the short.
throw ASN1Error.unsupportedFieldLength(reason: "Field length encoded in long form, but DER requires \(length) to be encoded in short form")
case 8...:
// For 8 or more bits, fieldLength should be the minimum required.
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftASN1/Basic ASN1 Types/ASN1BitString.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/// In ASN.1, bitstrings serve two different use-cases. The first is as arbitrary-length sequences of bits.
/// These are typically used to encode cryptographic keys, such as RSA keys. The second is as a form of bitset.
///
/// In the case of a bitset, DER has additonal requirements as to how to represent the object. This type does not
/// In the case of a bitset, DER has additional requirements as to how to represent the object. This type does not
/// enforce those additional rules: users are expected to implement that validation themselves.
public struct ASN1BitString: DERImplicitlyTaggable {
/// The default identifier for this type.
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftASN1/Basic ASN1 Types/ASN1Identifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ extension ASN1Identifier {
/// This tag represents a GraphicString.
public static let graphicString = ASN1Identifier(shortIdentifier: 0x19)

/// This tag represents a VisibileString.
/// This tag represents a VisibleString.
public static let visibleString = ASN1Identifier(shortIdentifier: 0x1a)

/// This tag represents a GeneralString.
Expand Down

0 comments on commit b3aaa04

Please sign in to comment.