mirror of
https://github.com/golang/go
synced 2024-11-23 20:10:08 -07:00
Effective Go: correct error in recent edit: "..." is in call to Sprintln, not Output.
R=rsc, gri CC=golang-dev https://golang.org/cl/2853042
This commit is contained in:
parent
02939dec80
commit
70d0b6b242
@ -1470,7 +1470,7 @@ func Println(v ...interface{}) {
|
||||
}
|
||||
</pre>
|
||||
<p>
|
||||
We write <code>...</code> after <code>v</code> in the call to <code>Output</code> to tell the
|
||||
We write <code>...</code> after <code>v</code> in the nested call to <code>Sprintln</code> to tell the
|
||||
compiler to treat <code>v</code> as a list of arguments; otherwise it would just pass
|
||||
<code>v</code> as a single slice argument.
|
||||
<p>
|
||||
|
Loading…
Reference in New Issue
Block a user