]> Cypherpunks repositories - gostls13.git/commitdiff
testing: fix testing docs
authortaisa <g5.taisa831@gmail.com>
Wed, 4 Dec 2019 08:31:59 +0000 (17:31 +0900)
committerIan Lance Taylor <iant@golang.org>
Thu, 5 Dec 2019 03:44:34 +0000 (03:44 +0000)
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>
src/testing/testing.go

index 59128e8a29d0855169d57c45ae1c5762ad5486d7..5f13e60f4f621b04dd571e949b738c07aa847714 100644 (file)
@@ -99,7 +99,7 @@
 // line order:
 //
 //     func ExamplePerm() {
-//         for _, value := range Perm(4) {
+//         for _, value := range Perm(5) {
 //             fmt.Println(value)
 //         }
 //         // Unordered output: 4