From: Josh Bleecher Snyder Date: Mon, 4 May 2015 21:56:52 +0000 (-0700) Subject: encoding/hex: minor cleanup X-Git-Tag: go1.7beta1~1804 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=1dbba1a2b7c5d04bc7ad560010a887b441feb0f4;p=gostls13.git encoding/hex: minor cleanup Change-Id: I404fd946dd0607fa41e2abe0d1d8081d4433ff0a Reviewed-on: https://go-review.googlesource.com/19762 Reviewed-by: Brad Fitzpatrick Run-TryBot: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- 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