diff options
| author | Rob Pike <r@golang.org> | 2015-06-21 05:10:05 +1000 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2015-06-22 22:29:35 +0000 |
| commit | cb3e2bf0baba3f056322d31e0edd0432eb34ea10 (patch) | |
| tree | 57059afdcb8cc4fad84f5937012310c2908278bd /src/cmd/doc/testdata/pkg.go | |
| parent | 58d177c63e9e9e50df4341d9aa5518c87a3309d8 (diff) | |
| download | go-cb3e2bf0baba3f056322d31e0edd0432eb34ea10.tar.xz | |
cmd/doc: fix copy/paste error in test
Some of those consts were supposed to be vars.
Caught by Ingo Oeser.
Change-Id: Ifc12e4a8ee61ebf5174e4ad923956c546dc096e2
Reviewed-on: https://go-review.googlesource.com/11296
Reviewed-by: Andrew Gerrand <adg@golang.org>
Diffstat (limited to 'src/cmd/doc/testdata/pkg.go')
| -rw-r--r-- | src/cmd/doc/testdata/pkg.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/doc/testdata/pkg.go b/src/cmd/doc/testdata/pkg.go index 013cdca679..ebefb50b2a 100644 --- a/src/cmd/doc/testdata/pkg.go +++ b/src/cmd/doc/testdata/pkg.go @@ -24,13 +24,13 @@ const ( // Variables // Comment about exported variable. -const ExportedVariable = 1 +var ExportedVariable = 1 // Comment about internal variable. -const internalVariable = 2 +var internalVariable = 2 // Comment about block of variables. -const ( +var ( // Comment before VarOne. VarOne = 1 VarTwo = 2 // Comment on line with VarTwo. |
