]> Cypherpunks repositories - gostls13.git/commitdiff
doc: add a missing space in func signature
authorBrad Fitzpatrick <bradfitz@golang.org>
Thu, 25 Jun 2015 03:33:51 +0000 (05:33 +0200)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 25 Jun 2015 05:34:14 +0000 (05:34 +0000)
Fixes #11383

Change-Id: I7ef0bb8b535ef513afdfcda19317ae4ff21f7166
Reviewed-on: https://go-review.googlesource.com/11490
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
doc/effective_go.html

index 7dfdb917348655618699758b9859ba282e3eb248..5465fa3a32f5d1ed91f6d7d82317a00affe342f7 100644 (file)
@@ -1421,7 +1421,7 @@ resulting slice is returned.  The function uses the fact that
 <code>nil</code> slice, and return 0.
 </p>
 <pre>
-func Append(slice, data[]byte) []byte {
+func Append(slice, data []byte) []byte {
     l := len(slice)
     if l + len(data) &gt; cap(slice) {  // reallocate
         // Allocate double what's needed, for future growth.