mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
testing: document that example output must use line comments
Fixes #4812. R=golang-dev, adg CC=golang-dev https://golang.org/cl/7396051
This commit is contained in:
parent
6ec551887a
commit
2482ef7233
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
// The package also runs and verifies example code. Example functions may
|
// The package also runs and verifies example code. Example functions may
|
||||||
// include a concluding comment that begins with "Output:" and is compared with
|
// include a concluding line comment that begins with "Output:" and is compared with
|
||||||
// the standard output of the function when the tests are run. (The comparison
|
// the standard output of the function when the tests are run. (The comparison
|
||||||
// ignores leading and trailing space.) These are examples of an example:
|
// ignores leading and trailing space.) These are examples of an example:
|
||||||
//
|
//
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue