From c40314821bb0d99c24c516543bcdf01eea231c48 Mon Sep 17 00:00:00 2001 From: Olivier Duperray Date: Fri, 13 Jan 2012 18:05:47 -0800 Subject: [PATCH] cmd/gofmt: fix simplify.go by running gofmt on cmd/gofmt R=golang-dev CC=golang-dev https://golang.org/cl/5539061 --- src/cmd/gofmt/simplify.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/gofmt/simplify.go b/src/cmd/gofmt/simplify.go index 9d3cb91439e..470c00625bb 100644 --- a/src/cmd/gofmt/simplify.go +++ b/src/cmd/gofmt/simplify.go @@ -50,8 +50,8 @@ func (s *simplifier) Visit(node ast.Node) ast.Visitor { if addr, ok := x.(*ast.UnaryExpr); ok && addr.Op == token.AND { if inner, ok := addr.X.(*ast.CompositeLit); ok { if match(nil, reflect.ValueOf(ptr.X), reflect.ValueOf(inner.Type)) { - inner.Type = nil // drop T - *px = inner // drop & + inner.Type = nil // drop T + *px = inner // drop & } } }