mirror of https://github.com/golang/go.git
spec: fix small typo in comment for example
R=golang-dev, mirtchovski, r CC=golang-dev https://golang.org/cl/14227043
This commit is contained in:
parent
a51b8cf870
commit
58d18e25af
|
|
@ -1,6 +1,6 @@
|
||||||
<!--{
|
<!--{
|
||||||
"Title": "The Go Programming Language Specification",
|
"Title": "The Go Programming Language Specification",
|
||||||
"Subtitle": "Version of Sep 16, 2013",
|
"Subtitle": "Version of Oct 3, 2013",
|
||||||
"Path": "/doc/spec"
|
"Path": "/doc/spec"
|
||||||
}-->
|
}-->
|
||||||
|
|
||||||
|
|
@ -2671,7 +2671,7 @@ sliced operand:
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
a[2:] // same a[2 : len(a)]
|
a[2:] // same as a[2 : len(a)]
|
||||||
a[:3] // same as a[0 : 3]
|
a[:3] // same as a[0 : 3]
|
||||||
a[:] // same as a[0 : len(a)]
|
a[:] // same as a[0 : len(a)]
|
||||||
</pre>
|
</pre>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue