diff options
Diffstat (limited to 'src/pkg/go/printer/printer.go')
-rw-r--r-- | src/pkg/go/printer/printer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/go/printer/printer.go b/src/pkg/go/printer/printer.go index ac8cd88e5..84a053495 100644 --- a/src/pkg/go/printer/printer.go +++ b/src/pkg/go/printer/printer.go @@ -847,7 +847,7 @@ func (p *printer) block(s *ast.BlockStmt) { func (p *printer) switchBlock(s *ast.BlockStmt) { p.print(s.Pos(), token.LBRACE); if len(s.List) > 0 { - for i, s := range s.List { + for _, s := range s.List { // s is one of *ast.CaseClause, *ast.TypeCaseClause, *ast.CommClause; p.print(newline); p.stmt(s); |