diff options
Diffstat (limited to 'src/encoding')
| -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 |
