Minor refactorings

This commit is contained in:
Junegunn Choi
2017-08-26 03:24:42 +09:00
parent 329de8f416
commit af809c9661
4 changed files with 4 additions and 4 deletions

View File

@@ -160,7 +160,7 @@ func (chars *Chars) CopyRunes(dest []rune) {
copy(dest, runes)
return
}
for idx, b := range chars.slice {
for idx, b := range chars.slice[:len(dest)] {
dest[idx] = rune(b)
}
return