diff options
author | Russ Cox <rsc@golang.org> | 2009-10-08 15:14:54 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-10-08 15:14:54 -0700 |
commit | 79244ca7360f32db37710ab74c72214146397edf (patch) | |
tree | 0f7c5551b95f4e5dd567a4ac3233afeb0da61e99 /src/pkg/regexp/all_test.go | |
parent | 71b9ef8c235f052495a1fb29bd3945f7094998a9 (diff) | |
download | golang-79244ca7360f32db37710ab74c72214146397edf.tar.gz |
more lgtm files from gofmt
R=gri
OCL=35485
CL=35488
Diffstat (limited to 'src/pkg/regexp/all_test.go')
-rw-r--r-- | src/pkg/regexp/all_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pkg/regexp/all_test.go b/src/pkg/regexp/all_test.go index b3df8bb50..2cd2fecf7 100644 --- a/src/pkg/regexp/all_test.go +++ b/src/pkg/regexp/all_test.go @@ -470,7 +470,7 @@ func TestAllMatches(t *testing.T) { switch c.matchfunc { case "matchit": - result = make([]string, len(c.input) + 1); + result = make([]string, len(c.input)+1); i := 0; b := strings.Bytes(c.input); for match := range re.AllMatchesIter(b, c.n) { @@ -479,7 +479,7 @@ func TestAllMatches(t *testing.T) { } result = result[0:i]; case "stringmatchit": - result = make([]string, len(c.input) + 1); + result = make([]string, len(c.input)+1); i := 0; for match := range re.AllMatchesStringIter(c.input, c.n) { result[i] = match; @@ -487,7 +487,7 @@ func TestAllMatches(t *testing.T) { } result = result[0:i]; case "match": - result = make([]string, len(c.input) + 1); + result = make([]string, len(c.input)+1); b := strings.Bytes(c.input); i := 0; for _, match := range re.AllMatches(b, c.n) { |