]> Cypherpunks repositories - gostls13.git/commitdiff
doc/articles/slices_usage_and_internals: fix typo
authorShenghou Ma <minux.ma@gmail.com>
Tue, 19 Jun 2012 17:22:03 +0000 (01:22 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Tue, 19 Jun 2012 17:22:03 +0000 (01:22 +0800)
        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>