Clarify log message for surrogate UTF-8 check

This commit is contained in:
jjpinto
2025-12-26 09:25:59 -05:00
committed by GitHub
parent 0f620776d7
commit bb2b03fc90

View File

@@ -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
}
}