aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/hex
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josharian@gmail.com>2015-05-04 14:56:52 -0700
committerJosh Bleecher Snyder <josharian@gmail.com>2016-02-21 03:59:22 +0000
commit1dbba1a2b7c5d04bc7ad560010a887b441feb0f4 (patch)
tree284f279291220be2e0d5af6f361a0facfa4fd0fc /src/encoding/hex
parentde6a5881bbf85113186d9cfdbe51fd3165ba7e4c (diff)
downloadgo-1dbba1a2b7c5d04bc7ad560010a887b441feb0f4.tar.xz
encoding/hex: minor cleanup
Change-Id: I404fd946dd0607fa41e2abe0d1d8081d4433ff0a Reviewed-on: https://go-review.googlesource.com/19762 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/encoding/hex')
-rw-r--r--src/encoding/hex/hex.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/encoding/hex/hex.go b/src/encoding/hex/hex.go
index d1fc7024a9..a51b1db61c 100644
--- a/src/encoding/hex/hex.go
+++ b/src/encoding/hex/hex.go
@@ -105,7 +105,7 @@ func Dump(data []byte) string {
dumper := Dumper(&buf)
dumper.Write(data)
dumper.Close()
- return string(buf.Bytes())
+ return buf.String()
}
// Dumper returns a WriteCloser that writes a hex dump of all written data to