aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing.go
diff options
context:
space:
mode:
authortaisa <g5.taisa831@gmail.com>2019-12-04 17:31:59 +0900
committerIan Lance Taylor <iant@golang.org>2019-12-05 03:44:34 +0000
commit7bdef2dfa4fe7d4d424d5601973b07d42ffc869b (patch)
tree33cce65c845f0e24b54ee67f3ba5963542772684 /src/testing/testing.go
parent9a8b497240b7e77a81b1914adfbccb15a76d2c33 (diff)
downloadgo-7bdef2dfa4fe7d4d424d5601973b07d42ffc869b.tar.gz
go-7bdef2dfa4fe7d4d424d5601973b07d42ffc869b.zip
testing: fix testing docs
The Perm function return 0 or 1 or 2 or 3. 4 is not returned, so that changed the argument to 5. Change-Id: Ic980c71a9f29f522bdeef4fce70a6c2dd136d791 Reviewed-on: https://go-review.googlesource.com/c/go/+/209777 Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/testing/testing.go')
-rw-r--r--src/testing/testing.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testing/testing.go b/src/testing/testing.go
index 59128e8a29..5f13e60f4f 100644
--- a/src/testing/testing.go
+++ b/src/testing/testing.go
@@ -99,7 +99,7 @@
// line order:
//
// func ExamplePerm() {
-// for _, value := range Perm(4) {
+// for _, value := range Perm(5) {
// fmt.Println(value)
// }
// // Unordered output: 4