]> Cypherpunks repositories - gostls13.git/commitdiff
Add trivial whitespace to CorruptInputError strings.
authorChristopher Wedgwood <cw@f00f.org>
Mon, 30 Nov 2009 20:03:10 +0000 (12:03 -0800)
committerRuss Cox <rsc@golang.org>
Mon, 30 Nov 2009 20:03:10 +0000 (12:03 -0800)
R=r, rsc
https://golang.org/cl/161058

src/pkg/encoding/ascii85/ascii85.go
src/pkg/encoding/base64/base64.go
src/pkg/encoding/git85/git.go

index 85f688b2f613c7117e34e8d5df2c37f2e55e36eb..ac446baf82c1d1bc55264a86d11da5daed979d81 100644 (file)
@@ -169,7 +169,7 @@ func (e *encoder) Close() os.Error {
 type CorruptInputError int64
 
 func (e CorruptInputError) String() string {
-       return "illegal ascii85 data at input byte" + strconv.Itoa64(int64(e))
+       return "illegal ascii85 data at input byte " + strconv.Itoa64(int64(e))
 }
 
 // Decode decodes src into dst, returning both the number
index ddb0e711773cbcfff64ba8af47b561db8e8f011d..e7b7f4da4099783a10e99e3426257314ef439181 100644 (file)
@@ -197,7 +197,7 @@ func (enc *Encoding) EncodedLen(n int) int  { return (n + 2) / 3 * 4 }
 type CorruptInputError int64
 
 func (e CorruptInputError) String() string {
-       return "illegal base64 data at input byte" + strconv.Itoa64(int64(e))
+       return "illegal base64 data at input byte " + strconv.Itoa64(int64(e))
 }
 
 // decode is like Decode but returns an additional 'end' value, which
index 71130a883b8fdc8ffab64c2e0e5cab6e5ba8d81d..1e529979290f4e7f38c29a521225d896d0125202 100644 (file)
@@ -16,7 +16,7 @@ import (
 type CorruptInputError int64
 
 func (e CorruptInputError) String() string {
-       return "illegal git85 data at input byte" + strconv.Itoa64(int64(e))
+       return "illegal git85 data at input byte " + strconv.Itoa64(int64(e))
 }
 
 const encode = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!#$%&()*+-;<=>?@^_`{|}~"