mirror of
https://github.com/golang/go
synced 2024-11-20 11:14:45 -07:00
utf8: fix typo.
R=golang-dev, iant CC=golang-dev https://golang.org/cl/7063056
This commit is contained in:
parent
f38df4e879
commit
be36ab339f
@ -400,7 +400,7 @@ func Valid(p []byte) bool {
|
||||
} else {
|
||||
_, size := DecodeRune(p[i:])
|
||||
if size == 1 {
|
||||
// All valid runes of size of 1 (those
|
||||
// All valid runes of size 1 (those
|
||||
// below RuneSelf) were handled above.
|
||||
// This must be a RuneError.
|
||||
return false
|
||||
|
Loading…
Reference in New Issue
Block a user