From: Caleb Spare Date: Sat, 12 Jan 2013 00:18:15 +0000 (+1100) Subject: testing: document whitespace trimming of example expected/actual output. X-Git-Tag: go1.1rc2~1405 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b78f5f0e3a88340bc3a047ffc5e2d222074e78b6;p=gostls13.git testing: document whitespace trimming of example expected/actual output. Fixes #4642. R=golang-dev, adg CC=golang-dev https://golang.org/cl/7090044 --- diff --git a/src/pkg/testing/testing.go b/src/pkg/testing/testing.go index 66b41a50fa..1768e205f0 100644 --- a/src/pkg/testing/testing.go +++ b/src/pkg/testing/testing.go @@ -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")