summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Jung <kurt.w.jung@code.google.com>2014-04-14 07:03:52 -0400
committerKurt Jung <kurt.w.jung@code.google.com>2014-04-14 07:03:52 -0400
commit4fcf797ac45777920197f0f3b216f69b5343bedb (patch)
tree0eb30d9425c0af2a15fbdc8418644b8652434413
parent52aa569f0de2942782f175fedb070315926d403f (diff)
Call String() on buffer than casting Bytes() to string.
-rw-r--r--util.go2
1 files changed, 1 insertions, 1 deletions
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()
}
}