]> Cypherpunks.ru repositories - gostls13.git/commitdiff
all: fix typo in RuneSelf, runeSelf comments
authorTim Cooper <tim.cooper@layeh.com>
Mon, 6 Jan 2020 02:16:26 +0000 (20:16 -0600)
committerDaniel Martí <mvdan@mvdan.cc>
Mon, 6 Jan 2020 02:46:02 +0000 (02:46 +0000)
Fixes #36396

Change-Id: I52190f450fa9ac52fbf4ecdc814e954dc29029cd
Reviewed-on: https://go-review.googlesource.com/c/go/+/213377
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/runtime/utf8.go
src/unicode/utf8/utf8.go

index 6bf596581ddb9bf26a90dbfa76f89099df698661..52b757662d0e7ba1409e506b66ee03177263bcdb 100644 (file)
@@ -7,7 +7,7 @@ package runtime
 // Numbers fundamental to the encoding.
 const (
        runeError = '\uFFFD'     // the "error" Rune or "Unicode replacement character"
-       runeSelf  = 0x80         // characters below Runeself are represented as themselves in a single byte.
+       runeSelf  = 0x80         // characters below runeSelf are represented as themselves in a single byte.
        maxRune   = '\U0010FFFF' // Maximum valid Unicode code point.
 )
 
index b722a039239543338fa7e18adfbaa1a7c7de2245..b8368fce41e83443ffb44c967ac91e755b593c82 100644 (file)
@@ -14,7 +14,7 @@ package utf8
 // Numbers fundamental to the encoding.
 const (
        RuneError = '\uFFFD'     // the "error" Rune or "Unicode replacement character"
-       RuneSelf  = 0x80         // characters below Runeself are represented as themselves in a single byte.
+       RuneSelf  = 0x80         // characters below RuneSelf are represented as themselves in a single byte.
        MaxRune   = '\U0010FFFF' // Maximum valid Unicode code point.
        UTFMax    = 4            // maximum number of bytes of a UTF-8 encoded Unicode character.
 )