aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/bytes/bytes.go
diff options
context:
space:
mode:
authorAdam Langley <agl@golang.org>2010-11-30 16:59:43 -0500
committerAdam Langley <agl@golang.org>2010-11-30 16:59:43 -0500
commit3cb4bdb9ce7135a107ab35e64b39dab9f22acfa1 (patch)
tree5d19a4214d838ad9ee4570e387bed51bc8abc25c /src/pkg/bytes/bytes.go
parent287045085dedfb241a4af111b690bc424b74b166 (diff)
downloadgo-3cb4bdb9ce7135a107ab35e64b39dab9f22acfa1.tar.xz
utf8: make EncodeRune's destination the first argument.
R=r CC=golang-dev https://golang.org/cl/3364041
Diffstat (limited to 'src/pkg/bytes/bytes.go')
-rw-r--r--src/pkg/bytes/bytes.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/bytes/bytes.go b/src/pkg/bytes/bytes.go
index e26b29fb55..d0749870eb 100644
--- a/src/pkg/bytes/bytes.go
+++ b/src/pkg/bytes/bytes.go
@@ -347,7 +347,7 @@ func Map(mapping func(rune int) int, s []byte) []byte {
copy(nb, b[0:nbytes])
b = nb
}
- nbytes += utf8.EncodeRune(rune, b[nbytes:maxbytes])
+ nbytes += utf8.EncodeRune(b[nbytes:maxbytes], rune)
}
i += wid
}