Skip to content

Commit

Permalink
Editorial: tweak wording of "standard base64 alphabet"
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkot committed Mar 19, 2024
1 parent 72cebc0 commit ddb2890
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ <h1>
</h1>
<dl class="header">
</dl>
<p>The <dfn id="standard-base64-alphabet">standard base64 alphabet</dfn> is a List whose elements are the code points corresponding to every letter and number in the Unicode Basic Latin block along with *"+"* and *"/"*; that is, it is StringToCodePoints(*"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"*).</p>
<p>The <dfn id="standard-base64-alphabet">standard base64 alphabet</dfn> is the String whose elements are the code units corresponding to every letter and number in the Unicode Basic Latin block along with *"+"* and *"/"*; that is, it is *"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"*.</p>
<emu-alg>
1. Let _chunkLength_ be the length of _chunk_.
1. If _chunkLength_ is 2, then
Expand Down Expand Up @@ -308,7 +308,7 @@ <h1>
1. If _char_ is either *"+"* or *"/"*, throw a *SyntaxError* exception.
1. Else if _char_ is *"-"*, set _char_ to *"+"*.
1. Else if _char_ is *"_"*, set _char_ to *"/"*.
1. If _char_ is not an element of the standard base64 alphabet, throw a *SyntaxError* exception.
1. If the sole code unit of _char_ is not an element of the standard base64 alphabet, throw a *SyntaxError* exception.
1. Let _remaining_ be _maxLength_ - the length of _bytes_.
1. If _remaining_ = 1 and _chunkLength_ = 2, or if _remaining_ = 2 and _chunkLength_ = 3, then
1. Return the Record { [[Read]]: _read_, [[Bytes]]: _bytes_ }.
Expand Down

0 comments on commit ddb2890

Please sign in to comment.