Commit 5d2cfc2f authored by Shenghou Ma's avatar Shenghou Ma

doc/articles/slices_usage_and_internals: fix typo

        Fixes #3753.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/6304097
parent d4c4f4d2
......@@ -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>
......
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