From: Shenghou Ma Date: Fri, 21 Sep 2012 19:53:42 +0000 (+1000) Subject: [release-branch.go1] doc/articles/slices_usage_and_internals: fix typo X-Git-Tag: go1.0.3~205 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=fbf580a3bc6c99b43dfcd42a1a6ca0e549c9ba6c;p=gostls13.git [release-branch.go1] doc/articles/slices_usage_and_internals: fix typo ««« backport 5b56c2c0597f doc/articles/slices_usage_and_internals: fix typo Fixes #3753. R=golang-dev, adg CC=golang-dev https://golang.org/cl/6304097 »»» --- diff --git a/doc/articles/slices_usage_and_internals.html b/doc/articles/slices_usage_and_internals.html index 810b0a41f8..7eb751b455 100644 --- a/doc/articles/slices_usage_and_internals.html +++ b/doc/articles/slices_usage_and_internals.html @@ -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'}