Commit c4031482 authored by Olivier Duperray's avatar Olivier Duperray Committed by Robert Griesemer

cmd/gofmt: fix simplify.go by running gofmt on cmd/gofmt

R=golang-dev
CC=golang-dev
https://golang.org/cl/5539061
parent 439d863e
......@@ -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 &
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment