commit | 3cb4bdb9ce7135a107ab35e64b39dab9f22acfa1 | [log] [tgz] |
---|---|---|
author | Adam Langley <agl@golang.org> | Tue Nov 30 16:59:43 2010 -0500 |
committer | Adam Langley <agl@golang.org> | Tue Nov 30 16:59:43 2010 -0500 |
tree | 5d19a4214d838ad9ee4570e387bed51bc8abc25c | |
parent | 287045085dedfb241a4af111b690bc424b74b166 [diff] [blame] |
utf8: make EncodeRune's destination the first argument. R=r CC=golang-dev https://golang.org/cl/3364041
diff --git a/src/pkg/bytes/buffer.go b/src/pkg/bytes/buffer.go index 6f93869..b4ad95f 100644 --- a/src/pkg/bytes/buffer.go +++ b/src/pkg/bytes/buffer.go
@@ -172,7 +172,7 @@ b.WriteByte(byte(r)) return 1, nil } - n = utf8.EncodeRune(r, b.runeBytes[0:]) + n = utf8.EncodeRune(b.runeBytes[0:], r) b.Write(b.runeBytes[0:n]) return n, nil }