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/bufio/bufio.go b/src/pkg/bufio/bufio.go index 7d59fb8..4e9f1cf 100644 --- a/src/pkg/bufio/bufio.go +++ b/src/pkg/bufio/bufio.go
@@ -482,7 +482,7 @@ return b.WriteString(string(rune)) } } - size = utf8.EncodeRune(rune, b.buf[b.n:]) + size = utf8.EncodeRune(b.buf[b.n:], rune) b.n += size return size, nil }