Skip to content

Commit

Permalink
Editorial: fix code unit vs code point distinction
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkot committed Jan 22, 2024
1 parent bb6f256 commit 0baee1a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -182,16 +182,15 @@ <h1>
SkipAsciiWhitespace (
_string_: a string,
_index_: a non-negative integer,
)
): a non-negative integer
</h1>
<dl class="header">
</dl>
<emu-alg>
1. Let _length_ be the length of _string_.
1. Repeat, while _index_ < _length_,
1. Let _char_ be the code unit at index _index_ of _string_.
1. TODO: fix types - code unit vs point.
1. If _char_ is neither U+0009 (TAB), U+000A (LF), U+000C (FF), U+000D (CR), nor U+0020 (SPACE), then
1. If _char_ is neither 0x0009 (TAB), 0x000A (LF), 0x000C (FF), 0x000D (CR), nor 0x0020 (SPACE), then
1. Return _index_.
1. Set _index_ to _index_ + 1.
1. Return _index_.
Expand Down

0 comments on commit 0baee1a

Please sign in to comment.