diff options
Diffstat (limited to 'libgo/go/unicode')
-rw-r--r-- | libgo/go/unicode/letter.go | 2 | ||||
-rw-r--r-- | libgo/go/unicode/tables.go | 2 | ||||
-rw-r--r-- | libgo/go/unicode/utf8/utf8_test.go | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/libgo/go/unicode/letter.go b/libgo/go/unicode/letter.go index 8d56363df96..fadaa57d8b5 100644 --- a/libgo/go/unicode/letter.go +++ b/libgo/go/unicode/letter.go @@ -151,7 +151,7 @@ func is32(ranges []Range32, r uint32) bool { return false } -// Is tests whether rune is in the specified table of ranges. +// Is reports whether the rune is in the specified table of ranges. func Is(rangeTab *RangeTable, r rune) bool { r16 := rangeTab.R16 if len(r16) > 0 && r <= rune(r16[len(r16)-1].Hi) { diff --git a/libgo/go/unicode/tables.go b/libgo/go/unicode/tables.go index 36b5a3115bf..939c41dc510 100644 --- a/libgo/go/unicode/tables.go +++ b/libgo/go/unicode/tables.go @@ -2864,7 +2864,7 @@ var ( Lo = _Lo // Lo is the set of Unicode characters in category Lo. Lower = _Ll // Lower is the set of Unicode lower case letters. Ll = _Ll // Ll is the set of Unicode characters in category Ll. - Mark = _M // Mark/M is the set of Unicode mark characters, category M. + Mark = _M // Mark/M is the set of Unicode mark characters, category M. M = _M Mc = _Mc // Mc is the set of Unicode characters in category Mc. Me = _Me // Me is the set of Unicode characters in category Me. diff --git a/libgo/go/unicode/utf8/utf8_test.go b/libgo/go/unicode/utf8/utf8_test.go index c516871c997..758d7a0f8e9 100644 --- a/libgo/go/unicode/utf8/utf8_test.go +++ b/libgo/go/unicode/utf8/utf8_test.go @@ -124,7 +124,7 @@ func TestDecodeRune(t *testing.T) { s := m.str r, size = DecodeRuneInString(s) if r != m.r || size != len(b) { - t.Errorf("DecodeRune(%q) = %#04x, %d want %#04x, %d", s, r, size, m.r, len(b)) + t.Errorf("DecodeRuneInString(%q) = %#04x, %d want %#04x, %d", s, r, size, m.r, len(b)) } // there's an extra byte that bytes left behind - make sure trailing byte works @@ -164,7 +164,7 @@ func TestDecodeRune(t *testing.T) { t.Errorf("DecodeRune(%q) = %#04x, %d want %#04x, %d", b, r, size, RuneError, 1) } s = string(b) - r, size = DecodeRune(b) + r, size = DecodeRuneInString(s) if r != RuneError || size != 1 { t.Errorf("DecodeRuneInString(%q) = %#04x, %d want %#04x, %d", s, r, size, RuneError, 1) } @@ -182,7 +182,7 @@ func TestDecodeSurrogateRune(t *testing.T) { s := m.str r, size = DecodeRuneInString(s) if r != RuneError || size != 1 { - t.Errorf("DecodeRune(%q) = %x, %d want %x, %d", b, r, size, RuneError, 1) + t.Errorf("DecodeRuneInString(%q) = %x, %d want %x, %d", b, r, size, RuneError, 1) } } } |