]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.go1] doc/articles/slices_usage_and_internals: fix typo
authorShenghou Ma <minux.ma@gmail.com>
Fri, 21 Sep 2012 19:53:42 +0000 (05:53 +1000)
committerShenghou Ma <minux.ma@gmail.com>
Fri, 21 Sep 2012 19:53:42 +0000 (05:53 +1000)
««« backport 5b56c2c0597f
doc/articles/slices_usage_and_internals: fix typo
        Fixes #3753.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/6304097

»»»

doc/articles/slices_usage_and_internals.html

index 810b0a41f8b851dc40a1864f035941fe55d89fbe..7eb751b45519e25ecc28d20ee9cbc2d15dca3c76 100644 (file)
@@ -243,7 +243,7 @@ slice itself) of a re-slice modifies the elements of the original slice:
 d := []byte{'r', 'o', 'a', 'd'}
 e := d[2:] 
 // e == []byte{'a', 'd'}
-e[1] == 'm'
+e[1] = 'm'
 // e == []byte{'a', 'm'}
 // d == []byte{'r', 'o', 'a', 'm'}
 </pre>