diff options
Diffstat (limited to 'src/pkg/encoding/hex/hex.go')
| -rw-r--r-- | src/pkg/encoding/hex/hex.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pkg/encoding/hex/hex.go b/src/pkg/encoding/hex/hex.go index 8a9271c237..1c52885e2e 100644 --- a/src/pkg/encoding/hex/hex.go +++ b/src/pkg/encoding/hex/hex.go @@ -8,7 +8,6 @@ package hex import ( "os" "strconv" - "strings" ) const hextable = "0123456789abcdef" @@ -92,7 +91,7 @@ func EncodeToString(src []byte) string { // DecodeString returns the bytes represented by the hexadecimal string s. func DecodeString(s string) ([]byte, os.Error) { - src := strings.Bytes(s) + src := []byte(s) dst := make([]byte, DecodedLen(len(src))) _, err := Decode(dst, src) if err != nil { |
