From 4fcf797ac45777920197f0f3b216f69b5343bedb Mon Sep 17 00:00:00 2001 From: Kurt Jung Date: Mon, 14 Apr 2014 07:03:52 -0400 Subject: Call String() on buffer than casting Bytes() to string. --- util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.go b/util.go index 4d03417..aaca0da 100644 --- a/util.go +++ b/util.go @@ -166,7 +166,7 @@ func repClosure(m map[rune]byte) func(string) string { } buf.WriteByte(ch) } - return string(buf.Bytes()) + return buf.String() } } -- cgit v1.2.1-24-ge1ad