diff options
author | Kurt Jung <kurt.w.jung@code.google.com> | 2014-04-14 07:03:52 -0400 |
---|---|---|
committer | Kurt Jung <kurt.w.jung@code.google.com> | 2014-04-14 07:03:52 -0400 |
commit | 4fcf797ac45777920197f0f3b216f69b5343bedb (patch) | |
tree | 0eb30d9425c0af2a15fbdc8418644b8652434413 | |
parent | 52aa569f0de2942782f175fedb070315926d403f (diff) |
Call String() on buffer than casting Bytes() to string.
-rw-r--r-- | util.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -166,7 +166,7 @@ func repClosure(m map[rune]byte) func(string) string { } buf.WriteByte(ch) } - return string(buf.Bytes()) + return buf.String() } } |