Commit 7bd6ebb1 authored by Rob Pike's avatar Rob Pike

spec: strings are more slices than arrays

Thanks to Aaron Kemp for noticing.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5645097
parent d84de09e
<!--{ <!--{
"Title": "The Go Programming Language Specification", "Title": "The Go Programming Language Specification",
"Subtitle": "Version of February 13, 2012" "Subtitle": "Version of February 14, 2012"
}--> }-->
<!-- <!--
...@@ -737,7 +737,7 @@ particular architecture. ...@@ -737,7 +737,7 @@ particular architecture.
<p> <p>
A <i>string type</i> represents the set of string values. A <i>string type</i> represents the set of string values.
Strings behave like arrays of bytes but are immutable: once created, Strings behave like slices of bytes but are immutable: once created,
it is impossible to change the contents of a string. it is impossible to change the contents of a string.
The predeclared string type is <code>string</code>. The predeclared string type is <code>string</code>.
......
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