mirror of
https://github.com/golang/go
synced 2024-11-21 23:04:39 -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:
parent
21ff75bc0e
commit
4fd7880d81
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user