diff options
author | Robert Griesemer <gri@golang.org> | 2009-11-09 12:07:39 -0800 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2009-11-09 12:07:39 -0800 |
commit | e940edc7a026293153ba09ece40e8092a2fc2463 (patch) | |
tree | c94a425c84b7a48f91a5d76a222effad70c9a88c /src/pkg/archive/tar/writer_test.go | |
parent | e067f862f1774ab89a2096a88571a94e3b9cd353 (diff) | |
download | golang-e940edc7a026293153ba09ece40e8092a2fc2463.tar.gz |
remove semis after statements in one-statement statement lists
R=rsc, r
http://go/go-review/1025029
Diffstat (limited to 'src/pkg/archive/tar/writer_test.go')
-rw-r--r-- | src/pkg/archive/tar/writer_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/pkg/archive/tar/writer_test.go b/src/pkg/archive/tar/writer_test.go index 94251f9a5..5edeaba07 100644 --- a/src/pkg/archive/tar/writer_test.go +++ b/src/pkg/archive/tar/writer_test.go @@ -87,9 +87,9 @@ func bytestr(offset int, b []byte) string { for _, ch := range b { switch { case '0' <= ch && ch <= '9', 'A' <= ch && ch <= 'Z', 'a' <= ch && ch <= 'z': - s += fmt.Sprintf(" %c", ch); + s += fmt.Sprintf(" %c", ch) default: - s += fmt.Sprintf(" %02x", ch); + s += fmt.Sprintf(" %02x", ch) } } return s; @@ -102,15 +102,15 @@ func bytediff(a []byte, b []byte) string { for offset := 0; len(a)+len(b) > 0; offset += rowLen { na, nb := rowLen, rowLen; if na > len(a) { - na = len(a); + na = len(a) } if nb > len(b) { - nb = len(b); + nb = len(b) } sa := bytestr(offset, a[0:na]); sb := bytestr(offset, b[0:nb]); if sa != sb { - s += fmt.Sprintf("-%v\n+%v\n", sa, sb); + s += fmt.Sprintf("-%v\n+%v\n", sa, sb) } a = a[na:len(a)]; b = b[nb:len(b)]; @@ -147,7 +147,7 @@ testLoop: actual := buf.Bytes(); if !bytes.Equal(expected, actual) { t.Errorf("test %d: Incorrect result: (-=expected, +=actual)\n%v", - i, bytediff(expected, actual)); + i, bytediff(expected, actual)) } } } |