]> Cypherpunks repositories - gostls13.git/commitdiff
encoding/hex: don't try to print DEL.
authorAdam Langley <agl@golang.org>
Tue, 31 May 2011 19:40:33 +0000 (15:40 -0400)
committerAdam Langley <agl@golang.org>
Tue, 31 May 2011 19:40:33 +0000 (15:40 -0400)
R=agl
CC=golang-dev
https://golang.org/cl/4551081

src/pkg/encoding/hex/hex.go

index 227829ae5c1daa441ce037f6230d64d380e4708a..47cdedd60721d38aadb37586f0db32598f673e94 100644 (file)
@@ -128,7 +128,7 @@ type dumper struct {
 }
 
 func toChar(b byte) byte {
-       if b < 32 || b > 127 {
+       if b < 32 || b > 126 {
                return '.'
        }
        return b