mirror of
https://github.com/golang/go.git
synced 2026-01-29 07:02:05 +03:00
Clarify log message for surrogate UTF-8 check
This commit is contained in:
@@ -59,7 +59,7 @@ func main() {
|
||||
|
||||
for _, c := range "a\xed\xa0\x80a" {
|
||||
if c != 'a' && c != utf8.RuneError {
|
||||
fmt.Printf("surrogate UTF-8 does not error: %U\n", c)
|
||||
fmt.Printf("surrogate UTF-8 does not produce an error: %U\n", c)
|
||||
ok = false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user