diff options
| author | Sean Liao <sean@liao.dev> | 2025-09-19 11:27:55 +0100 |
|---|---|---|
| committer | Sean Liao <sean@liao.dev> | 2025-09-19 09:54:12 -0700 |
| commit | b8af74436000dcb370b41ec70acc8ab4632adf05 (patch) | |
| tree | 1d14defbe99b786f60fd01529a2cf1441919b2fd /src/testing/testing.go | |
| parent | 51dc5bfe6c1e8e71065401f12cf000b9941882fd (diff) | |
| download | go-b8af74436000dcb370b41ec70acc8ab4632adf05.tar.xz | |
testing: fix example for unexported identifier
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>
Diffstat (limited to 'src/testing/testing.go')
| -rw-r--r-- | src/testing/testing.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testing/testing.go b/src/testing/testing.go index 2f0206b0a4..3f76446549 100644 --- a/src/testing/testing.go +++ b/src/testing/testing.go @@ -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) // } // } // |
