Commit 4fd7880d authored by Rob Pike's avatar Rob Pike

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

R=rsc
CC=golang-dev
https://golang.org/cl/1689042
parent 21ff75bc
......@@ -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)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment