From: Tim Cooper Date: Mon, 6 Jan 2020 02:16:26 +0000 (-0600) Subject: all: fix typo in RuneSelf, runeSelf comments X-Git-Tag: go1.14rc1~178 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c6e84263865fa418b4d4a60f077d02c10a0fff23;p=gostls13.git all: fix typo in RuneSelf, runeSelf comments Fixes #36396 Change-Id: I52190f450fa9ac52fbf4ecdc814e954dc29029cd Reviewed-on: https://go-review.googlesource.com/c/go/+/213377 Reviewed-by: Daniel Martí Run-TryBot: Daniel Martí TryBot-Result: Gobot Gobot --- diff --git a/src/runtime/utf8.go b/src/runtime/utf8.go index 6bf596581d..52b757662d 100644 --- a/src/runtime/utf8.go +++ b/src/runtime/utf8.go @@ -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. ) diff --git a/src/unicode/utf8/utf8.go b/src/unicode/utf8/utf8.go index b722a03923..b8368fce41 100644 --- a/src/unicode/utf8/utf8.go +++ b/src/unicode/utf8/utf8.go @@ -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. )