Bugs in Slices Chapter
Opened this issue · 0 comments
scottfranklin commented
Last example of the slices chapter:
- newSlice := make([]byte, l+len(data))
+ newSlive := make([]byte, length + len(data))
Also, need to reassign after append, since we potentially return a copy.
- Append(hello, world)
+ hello = Append(hello, world)