aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjjpinto <jorgpinto@gmail.com>2025-12-26 14:39:48 +0000
committerGopher Robot <gobot@golang.org>2025-12-29 11:19:28 -0800
commitf7b7e94b0a2798bab26e9906df823a0fe5bcddfd (patch)
tree2ac2fb989dc84d4fbde375eae61a1c6c82c93d57
parente790d5967424b4230978f63d16ecc5033269dd02 (diff)
downloadgo-f7b7e94b0a2798bab26e9906df823a0fe5bcddfd.tar.xz
test: clarify log message for surrogate UTF-8 check
The current log message "does not error" is slightly ambiguous. This change clarifies the output. Change-Id: I5c2327b9fa3d3e28ce43ce1189f8b1b7663fe0d3 GitHub-Last-Rev: bb2b03fc909f0bae29ab540776ae1d28165a603a GitHub-Pull-Request: golang/go#76998 Reviewed-on: https://go-review.googlesource.com/c/go/+/732740 Reviewed-by: Keith Randall <khr@golang.org> Reviewed-by: Keith Randall <khr@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Keith Randall <khr@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com>
-rw-r--r--test/stringrange.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/stringrange.go b/test/stringrange.go
index 99e5edb5a4..d98013b876 100644
--- a/test/stringrange.go
+++ b/test/stringrange.go
@@ -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
}
}