1
0
mirror of https://github.com/golang/go synced 2024-11-26 21:11:57 -07:00

doc: add a missing space in func signature

Fixes #11383

Change-Id: I7ef0bb8b535ef513afdfcda19317ae4ff21f7166
Reviewed-on: https://go-review.googlesource.com/11490
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
This commit is contained in:
Brad Fitzpatrick 2015-06-25 05:33:51 +02:00
parent 4e834cff4f
commit 26f12beb5d

View File

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