1
0
mirror of https://github.com/golang/go synced 2024-11-21 16:14:42 -07:00

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
This commit is contained in:
Rob Pike 2012-02-13 23:39:56 +11:00
parent d84de09e1d
commit 7bd6ebb104

View File

@ -1,6 +1,6 @@
<!--{
"Title": "The Go Programming Language Specification",
"Subtitle": "Version of February 13, 2012"
"Subtitle": "Version of February 14, 2012"
}-->
<!--
@ -737,7 +737,7 @@ particular architecture.
<p>
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.
The predeclared string type is <code>string</code>.