]> Cypherpunks repositories - gostls13.git/commitdiff
testing: fix example for unexported identifier
authorSean Liao <sean@liao.dev>
Fri, 19 Sep 2025 10:27:55 +0000 (11:27 +0100)
committerSean Liao <sean@liao.dev>
Fri, 19 Sep 2025 16:54:12 +0000 (09:54 -0700)
Fixes #75540

Change-Id: I925f893d33660f0b08996d53cc9c564017232b39
Reviewed-on: https://go-review.googlesource.com/c/go/+/705456
Reviewed-by: Alan Donovan <adonovan@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/testing/testing.go

index 2f0206b0a4dae107b1c7c614f8b64403e5d26557..3f76446549364a6fc223a3d2ac9a586f7fb01f89 100644 (file)
@@ -30,9 +30,9 @@
 //     import "testing"
 //
 //     func TestAbs(t *testing.T) {
-//         got := Abs(-1)
+//         got := abs(-1)
 //         if got != 1 {
-//             t.Errorf("Abs(-1) = %d; want 1", got)
+//             t.Errorf("abs(-1) = %d; want 1", got)
 //         }
 //     }
 //