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 | 5019a8db7fc5de588ae2070be8f7f3a794e9b610 (patch) | |
| tree | 87eb96a26af23a3154b5fd79e97f5df87806baa1 /src | |
| parent | a52d6fb73a0767428c1d970fc94a446848990272 (diff) | |
| download | go-5019a8db7fc5de588ae2070be8f7f3a794e9b610.tar.xz | |
integrate feedback from rsc
R=rsc
DELTA=2 (0 added, 0 deleted, 2 changed)
OCL=26810
CL=26834
Diffstat (limited to 'src')
| -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 e7a5594b90..448f4819cc 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]); } |
