From 0baee1a7430750eaa7b8106128288a1c87c1f58f Mon Sep 17 00:00:00 2001 From: Kevin Gibbons Date: Sun, 21 Jan 2024 20:33:18 -0800 Subject: [PATCH] Editorial: fix code unit vs code point distinction --- spec.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spec.html b/spec.html index 85ab39c..4185167 100644 --- a/spec.html +++ b/spec.html @@ -182,7 +182,7 @@

SkipAsciiWhitespace ( _string_: a string, _index_: a non-negative integer, - ) + ): a non-negative integer

@@ -190,8 +190,7 @@

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_.