]> Cypherpunks repositories - gostls13.git/commitdiff
doc: fix formatting in effective go code snippet
authorAndrew Gerrand <adg@golang.org>
Fri, 3 May 2013 19:24:05 +0000 (15:24 -0400)
committerAndrew Gerrand <adg@golang.org>
Fri, 3 May 2013 19:24:05 +0000 (15:24 -0400)
Fixes #5403.

R=golang-dev, minux.ma
CC=golang-dev
https://golang.org/cl/9100046

doc/effective_go.html

index e546c083b6d6e0fc18b16b509f75d4c8d1642f96..227659ef4c7dcc166ba2e8b69b236672725aa58a 100644 (file)
@@ -1805,7 +1805,7 @@ is different from our custom <code>Append</code> function above.
 Schematically, it's like this:
 </p>
 <pre>
-func append(slice []<i>T</i>, elements...<i>T</i>) []<i>T</i>
+func append(slice []<i>T</i>, elements ...<i>T</i>) []<i>T</i>
 </pre>
 <p>
 where <i>T</i> is a placeholder for any given type.  You can't