summaryrefslogtreecommitdiffhomepage
path: root/helpers/emoji_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/emoji_test.go')
-rw-r--r--helpers/emoji_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/emoji_test.go b/helpers/emoji_test.go
index f9189eb43..89f9df5fa 100644
--- a/helpers/emoji_test.go
+++ b/helpers/emoji_test.go
@@ -80,7 +80,7 @@ func BenchmarkEmojiKyokomiFprint(b *testing.B) {
defer bufferpool.PutBuffer(buff)
emoji.Fprint(buff, string(in))
- bc := make([]byte, buff.Len(), buff.Len())
+ bc := make([]byte, buff.Len())
copy(bc, buff.Bytes())
return bc
}