1
0
mirror of https://github.com/golang/go synced 2024-11-18 20:04:52 -07:00

testing: document whitespace trimming of example expected/actual output.

Fixes #4642.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/7090044
This commit is contained in:
Caleb Spare 2013-01-12 11:18:15 +11:00 committed by Andrew Gerrand
parent ad63c7e50b
commit b78f5f0e3a

View 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")