From: Rob Pike Date: Tue, 3 Mar 2009 04:17:12 +0000 (-0800) Subject: redo poor example of slices. X-Git-Tag: weekly.2009-11-06~2125 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=da34bea950229a2bae01d080cbf833e567c5b84e;p=gostls13.git redo poor example of slices. R=rsc OCL=25614 CL=25614 --- diff --git a/doc/go_spec.html b/doc/go_spec.html index dade367047..2ec8094a9c 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1014,11 +1014,13 @@ make([]T, length, capacity)

-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:

-make([]T, capacity)[0 : length]
+make([]int, 50, 100)
+new([100]int)[0:50]