diff options
Diffstat (limited to 'src/util')
| -rw-r--r-- | src/util/chars.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/chars.go b/src/util/chars.go index 35b28297..04a66d7d 100644 --- a/src/util/chars.go +++ b/src/util/chars.go @@ -172,11 +172,11 @@ func (chars *Chars) CopyRunes(dest []rune) { return } -func (chars *Chars) Wrap(prefix string, suffix string) { +func (chars *Chars) Prepend(prefix string) { if runes := chars.optionalRunes(); runes != nil { - runes = append(append([]rune(prefix), runes...), []rune(suffix)...) + runes = append([]rune(prefix), runes...) chars.slice = *(*[]byte)(unsafe.Pointer(&runes)) } else { - chars.slice = append(append([]byte(prefix), chars.slice...), []byte(suffix)...) + chars.slice = append([]byte(prefix), chars.slice...) } } |
