From b78f5f0e3a88340bc3a047ffc5e2d222074e78b6 Mon Sep 17 00:00:00 2001 From: Caleb Spare Date: Sat, 12 Jan 2013 11:18:15 +1100 Subject: [PATCH] testing: document whitespace trimming of example expected/actual output. Fixes #4642. R=golang-dev, adg CC=golang-dev https://golang.org/cl/7090044 --- src/pkg/testing/testing.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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") -- 2.48.1