Skip to content

Commit b8af744

Browse files
committed
testing: fix example for unexported identifier
Fixes golang#75540 Change-Id: I925f893d33660f0b08996d53cc9c564017232b39 Reviewed-on: https://go-review.googlesource.com/c/go/+/705456 Reviewed-by: Alan Donovan <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Michael Knyszek <[email protected]>
1 parent 51dc5bf commit b8af744

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/testing/testing.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
// import "testing"
3131
//
3232
// func TestAbs(t *testing.T) {
33-
// got := Abs(-1)
33+
// got := abs(-1)
3434
// if got != 1 {
35-
// t.Errorf("Abs(-1) = %d; want 1", got)
35+
// t.Errorf("abs(-1) = %d; want 1", got)
3636
// }
3737
// }
3838
//

0 commit comments

Comments
 (0)