From b34f0551387fcf043d65cd7d96a0214956578f94 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Tue, 2 Apr 2013 23:17:37 -0700 Subject: [PATCH] spec: Go has no 'reference types' R=golang-dev, r CC=golang-dev https://golang.org/cl/8288044 --- doc/go_spec.html | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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.