diff options
author | Robert Griesemer <gri@golang.org> | 2009-03-27 09:49:11 -0700 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2009-03-27 09:49:11 -0700 |
commit | c518dfc0b298a2432da1e5f9a472d3655a3cef83 (patch) | |
tree | 87eb96a26af23a3154b5fd79e97f5df87806baa1 /src/lib | |
parent | 60acfe0aba9eee55a1871a111188f05f9997b67b (diff) | |
download | golang-c518dfc0b298a2432da1e5f9a472d3655a3cef83.tar.gz |
integrate feedback from rsc
R=rsc
DELTA=2 (0 added, 0 deleted, 2 changed)
OCL=26810
CL=26834
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/utf8.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/utf8.go b/src/lib/utf8.go index e7a5594b9..448f4819c 100644 --- a/src/lib/utf8.go +++ b/src/lib/utf8.go @@ -256,13 +256,13 @@ func EncodeRune(rune int, p []byte) int { return 4; } -// EncodeRuneToString returns the string corresponding to the UTF-8 encoding of the rune. +// EncodeRuneToString returns the UTF-8 encoding of the rune. func EncodeRuneToString(rune int) string { if rune < _Rune1Max { return string([1]byte{byte(rune)}) } - var buf[UTFMax] byte; + var buf [UTFMax]byte; size := EncodeRune(rune, buf); return string(buf[0:size]); } |