summaryrefslogtreecommitdiff
path: root/src/pkg/go/ast/print.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/go/ast/print.go')
-rw-r--r--src/pkg/go/ast/print.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/go/ast/print.go b/src/pkg/go/ast/print.go
index e6d4e838d..81e1da1d0 100644
--- a/src/pkg/go/ast/print.go
+++ b/src/pkg/go/ast/print.go
@@ -62,7 +62,7 @@ func Fprint(w io.Writer, fset *token.FileSet, x interface{}, f FieldFilter) (n i
p.printf("nil\n")
return
}
- p.print(reflect.NewValue(x))
+ p.print(reflect.ValueOf(x))
p.printf("\n")
return