Permalink
Browse files

doc: simplify Append example in "Effective Go"

Change-Id: I011486993b167e65c69da1c8390bbcc625ca58c3
Reviewed-on: https://go-review.googlesource.com/64331
Reviewed-by: Rob Pike <r@golang.org>
  • Loading branch information...
gbbr authored and robpike committed Sep 18, 2017
1 parent 8bdf0b7 commit c40579ac75b7fe012097af46c4e3dd7fbd291311
Showing with 1 addition and 3 deletions.
  1. +1 −3 doc/effective_go.html
View
@@ -1431,9 +1431,7 @@ <h3 id="slices">Slices</h3>
slice = newSlice
}
slice = slice[0:l+len(data)]
for i, c := range data {
slice[l+i] = c
}
copy(slice[l:], data)
return slice
}
</pre>

0 comments on commit c40579a

Please sign in to comment.