Skip to content

Commit 037beb8

Browse files
committed
Fix base64URLAlphabet
1 parent ec86048 commit 037beb8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Proposals/NNNN-base64-urlencoding-and-omitting-padding.md renamed to Proposals/0020-base64-urlencoding-and-omitting-padding.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ We propose to add additional options to `Data.Base64EncodingOptions`:
3333
extension Data.Base64EncodingOptions {
3434
/// Use the base64url alphabet to encode the data
3535
@available(FoundationPreview 6.2, *)
36-
public static var base64UrlAlphabet: Base64EncodingOptions { get }
36+
public static var base64URLAlphabet: Base64EncodingOptions { get }
3737

3838
/// Omit the `=` padding characters in the end of the base64 encoded result
3939
@available(FoundationPreview 6.2, *)
@@ -48,8 +48,8 @@ extension Data.Base64DecodingOptions {
4848
/// Modify the decoding algorithm so that it ignores unknown non-Base-64 bytes, including line ending characters.
4949
///
5050
/// - Warning: Using `ignoreUnknownCharacters` might allow the decoding of base64url data, even when the
51-
/// `base64UrlAlphabet` is not selected. It might also allow using the base64 alphabet when the
52-
/// `base64UrlAlphabet` is selected.
51+
/// `base64URLAlphabet` is not selected. It might also allow using the base64 alphabet when the
52+
/// `base64URLAlphabet` is selected.
5353
/// Consider using the `ignoreWhitespaceCharacters` option if possible.
5454
public static let ignoreUnknownCharacters = Base64DecodingOptions(rawValue: 1 << 0)
5555

@@ -61,7 +61,7 @@ extension Data.Base64DecodingOptions {
6161

6262
/// Modify the decoding algorithm so that it expects base64 encoded data that uses base64url alphabet.
6363
@available(FoundationPreview 6.2, *)
64-
public static var base64UrlAlphabet: Base64EncodingOptions { get }
64+
public static var base64URLAlphabet: Base64EncodingOptions { get }
6565

6666
/// Modify the decoding algorithm so that it expects no padding characters at the end of the encoded data.
6767
///

0 commit comments

Comments
 (0)