Commit da34bea9 authored by Rob Pike's avatar Rob Pike

redo poor example of slices.

R=rsc
OCL=25614
CL=25614
parent da38974c
......@@ -1014,11 +1014,13 @@ make([]T, length, capacity)
</pre>
<p>
produces the same slice as allocating an array and slicing it:
produces the same slice as allocating an array and slicing it, so these two examples
produce the same slice:
</p>
<pre>
make([]T, capacity)[0 : length]
make([]int, 50, 100)
new([100]int)[0:50]
</pre>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment