]> Cypherpunks repositories - gostls13.git/commitdiff
tabwriter: delete unnecessary type declaration
authorRobert Griesemer <gri@golang.org>
Tue, 26 Oct 2010 00:45:26 +0000 (17:45 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 26 Oct 2010 00:45:26 +0000 (17:45 -0700)
R=rsc, r2
CC=golang-dev
https://golang.org/cl/2733041

src/pkg/tabwriter/tabwriter_test.go

index 1c1eecf31b4fc94cbcd4b16533b4c1f6daab3cf3..043d9154e10fb3f749ddac025c6c51256d6d28b4 100644 (file)
@@ -99,16 +99,13 @@ func check(t *testing.T, testname string, minwidth, tabwidth, padding int, padch
 }
 
 
-type entry struct {
+var tests = []struct {
        testname                    string
        minwidth, tabwidth, padding int
        padchar                     byte
        flags                       uint
        src, expected               string
-}
-
-
-var tests = []entry{
+}{
        {
                "1a",
                8, 0, 1, '.', 0,