Commit 1dbba1a2 authored by Josh Bleecher Snyder's avatar Josh Bleecher Snyder

encoding/hex: minor cleanup

Change-Id: I404fd946dd0607fa41e2abe0d1d8081d4433ff0a
Reviewed-on: https://go-review.googlesource.com/19762Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent de6a5881
...@@ -105,7 +105,7 @@ func Dump(data []byte) string { ...@@ -105,7 +105,7 @@ func Dump(data []byte) string {
dumper := Dumper(&buf) dumper := Dumper(&buf)
dumper.Write(data) dumper.Write(data)
dumper.Close() dumper.Close()
return string(buf.Bytes()) return buf.String()
} }
// Dumper returns a WriteCloser that writes a hex dump of all written data to // Dumper returns a WriteCloser that writes a hex dump of all written data to
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment