]> Cypherpunks repositories - gostls13.git/commitdiff
testing: use -bench flag and fix flags doc link
authorDan Peterson <dpiddy@gmail.com>
Mon, 17 Jun 2013 14:32:28 +0000 (07:32 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 17 Jun 2013 14:32:28 +0000 (07:32 -0700)
R=golang-dev, r, kr
CC=golang-dev
https://golang.org/cl/10263043

src/pkg/testing/testing.go

index 7f7ae2007064a6e2e06c4592257a1e086e301b9d..7ef47b6875ae17e40511ffde7f4b1a9d91507f5e 100644 (file)
 // Functions of the form
 //     func BenchmarkXxx(*testing.B)
 // are considered benchmarks, and are executed by the "go test" command when
-// the -test.bench flag is provided. Benchmarks are run sequentially.
+// its -bench flag is provided. Benchmarks are run sequentially.
 //
 // For a description of the testing flags, see
-// http://golang.org/cmd/go/#Description_of_testing_flags.
+// http://golang.org/cmd/go/#hdr-Description_of_testing_flags.
 //
 // A sample benchmark function looks like this:
 //     func BenchmarkHello(b *testing.B) {