1
0
mirror of https://github.com/golang/go synced 2024-11-25 00:07:56 -07:00

Effective Go: minor change to correct a comment in an example

R=rsc
CC=golang-dev
https://golang.org/cl/1689042
This commit is contained in:
Rob Pike 2010-06-18 20:33:03 -07:00
parent 21ff75bc0e
commit 4fd7880d81

View File

@ -1457,7 +1457,7 @@ function <code>log.Stderr</code> we used above. It passes its arguments directly
<code>fmt.Sprintln</code> for the actual formatting.
</p>
<pre>
// Stderr is a helper function for easy logging to stderr. It is analogous to Fprint(os.Stderr).
// Stderr is a helper function for easy logging to stderr. It is analogous to Fprintln(os.Stderr).
func Stderr(v ...interface{}) {
stderr.Output(2, fmt.Sprintln(v)) // Output takes parameters (int, string)
}