From 3cb4bdb9ce7135a107ab35e64b39dab9f22acfa1 Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Tue, 30 Nov 2010 16:59:43 -0500 Subject: utf8: make EncodeRune's destination the first argument. R=r CC=golang-dev https://golang.org/cl/3364041 --- src/pkg/bytes/bytes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pkg/bytes/bytes.go') 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 } -- cgit v1.3-5-g9baa