]> Cypherpunks repositories - gostls13.git/commitdiff
testing: document whitespace trimming of example expected/actual output.
authorCaleb Spare <cespare@gmail.com>
Sat, 12 Jan 2013 00:18:15 +0000 (11:18 +1100)
committerAndrew Gerrand <adg@golang.org>
Sat, 12 Jan 2013 00:18:15 +0000 (11:18 +1100)
Fixes #4642.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/7090044

src/pkg/testing/testing.go

index 66b41a50fa7bad82eae15e9bf0d6bf840d1942a8..1768e205f0ded41ee19513471f8becafd695204b 100644 (file)
@@ -42,8 +42,8 @@
 //
 // The package also runs and verifies example code. Example functions may
 // include a concluding comment that begins with "Output:" and is compared with
-// the standard output of the function when the tests are run, as in these
-// examples of an example:
+// the standard output of the function when the tests are run. (The comparison
+// ignores leading and trailing space.) These are examples of an example:
 //
 //     func ExampleHello() {
 //             fmt.Println("hello")