mirror of
https://github.com/golang/go
synced 2024-11-11 23:20:24 -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:
parent
4e834cff4f
commit
26f12beb5d
@ -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) > cap(slice) { // reallocate
|
||||
// Allocate double what's needed, for future growth.
|
||||
|
Loading…
Reference in New Issue
Block a user