diff options
| author | Josh Bleecher Snyder <josharian@gmail.com> | 2015-05-04 14:56:52 -0700 |
|---|---|---|
| committer | Josh Bleecher Snyder <josharian@gmail.com> | 2016-02-21 03:59:22 +0000 |
| commit | 1dbba1a2b7c5d04bc7ad560010a887b441feb0f4 (patch) | |
| tree | 284f279291220be2e0d5af6f361a0facfa4fd0fc /src/encoding/hex | |
| parent | de6a5881bbf85113186d9cfdbe51fd3165ba7e4c (diff) | |
| download | go-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.go | 2 |
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 |
