From: Robert Griesemer Date: Wed, 3 Apr 2013 06:17:37 +0000 (-0700) Subject: spec: Go has no 'reference types' X-Git-Tag: go1.1rc2~212 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b34f0551387fcf043d65cd7d96a0214956578f94;p=gostls13.git spec: Go has no 'reference types' R=golang-dev, r CC=golang-dev https://golang.org/cl/8288044 --- diff --git a/doc/go_spec.html b/doc/go_spec.html index 881d166566..214d1c0acc 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -837,9 +837,9 @@ multi-dimensional types.

Slice types

-A slice is a reference to a contiguous segment of an array and -contains a numbered sequence of elements from that array. A slice -type denotes the set of all slices of arrays of its element type. +A slice is a descriptor for a contiguous segment of an array and +provides access to a numbered sequence of elements from that array. +A slice type denotes the set of all slices of arrays of its element type. The value of an uninitialized slice is nil.

@@ -5197,8 +5197,6 @@ of the memory.

Making slices, maps and channels

-Slices, maps and channels are reference types that do not require the -extra indirection of an allocation with new. The built-in function make takes a type T, which must be a slice, map or channel type, optionally followed by a type-specific list of expressions.