From b3aaa046fa7ea0498dcbf8a600acd028e82ebd39 Mon Sep 17 00:00:00 2001 From: Joey <59270018+joey-gm@users.noreply.github.com> Date: Tue, 11 Apr 2023 15:39:26 +0800 Subject: [PATCH] Documentation - Typos (#24) --- Sources/SwiftASN1/ASN1.swift | 2 +- Sources/SwiftASN1/Basic ASN1 Types/ASN1BitString.swift | 2 +- Sources/SwiftASN1/Basic ASN1 Types/ASN1Identifier.swift | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/SwiftASN1/ASN1.swift b/Sources/SwiftASN1/ASN1.swift index 7c61b58..b375fe9 100644 --- a/Sources/SwiftASN1/ASN1.swift +++ b/Sources/SwiftASN1/ASN1.swift @@ -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. diff --git a/Sources/SwiftASN1/Basic ASN1 Types/ASN1BitString.swift b/Sources/SwiftASN1/Basic ASN1 Types/ASN1BitString.swift index 99a07ab..cb2c756 100644 --- a/Sources/SwiftASN1/Basic ASN1 Types/ASN1BitString.swift +++ b/Sources/SwiftASN1/Basic ASN1 Types/ASN1BitString.swift @@ -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. diff --git a/Sources/SwiftASN1/Basic ASN1 Types/ASN1Identifier.swift b/Sources/SwiftASN1/Basic ASN1 Types/ASN1Identifier.swift index 91ed5e0..57cb453 100644 --- a/Sources/SwiftASN1/Basic ASN1 Types/ASN1Identifier.swift +++ b/Sources/SwiftASN1/Basic ASN1 Types/ASN1Identifier.swift @@ -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.