]> Cypherpunks repositories - gostls13.git/commitdiff
encoding/hex: minor cleanup
authorJosh Bleecher Snyder <josharian@gmail.com>
Mon, 4 May 2015 21:56:52 +0000 (14:56 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Sun, 21 Feb 2016 03:59:22 +0000 (03:59 +0000)
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>

src/encoding/hex/hex.go

index d1fc7024a97fa24c0ea8b096dfb5a7d144550848..a51b1db61c1510dfca8539ba8a6b45c985f775bf 100644 (file)
@@ -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