summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2010-09-02 10:16:31 -0700
committerRobert Griesemer <gri@golang.org>2010-09-02 10:16:31 -0700
commit3ff8a31d78320f0969e5f143cc1a9f7d368e6720 (patch)
tree091a5493530c4f5920d983a7fb55beb04e4b235c /doc
parent90baae8e01a96585dec3ad86d9ecf7b94a17f278 (diff)
downloadgo-3ff8a31d78320f0969e5f143cc1a9f7d368e6720.tar.gz
go spec clarification: arrays must be addressable to be sliceable
R=rsc CC=golang-dev, r http://codereview.appspot.com/2141041
Diffstat (limited to 'doc')
-rw-r--r--doc/go_spec.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/go_spec.html b/doc/go_spec.html
index 861c858be..b23ef7606 100644
--- a/doc/go_spec.html
+++ b/doc/go_spec.html
@@ -1,5 +1,5 @@
<!-- title The Go Programming Language Specification -->
-<!-- subtitle Version of Sep 1, 2010 -->
+<!-- subtitle Version of Sep 2, 2010 -->
<!--
TODO
@@ -2464,8 +2464,8 @@ for slices, the upper bound is the capacity rather than the length.
<p>
If the sliced operand is a string or slice, the result of the slice operation
is a string or slice of the same type.
-If the sliced operand is an array, the result of the slice operation is a slice
-with the same element type as the array.
+If the sliced operand is an array, it must be <a href="#Address_operators">addressable</a>
+and the result of the slice operation is a slice with the same element type as the array.
</p>