Commit 65dbe765 authored by Russ Cox's avatar Russ Cox

go/printer: use new reflect interface (CL 31107)

R=gri
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=31115
CL=31285
parent b9b32cab
......@@ -152,8 +152,8 @@ func (p *printer) adjustSpacingAndMergeComments() {
func (p *printer) print(args ...) {
v := reflect.NewValue(args).(reflect.StructValue);
for i := 0; i < v.Len(); i++ {
v := reflect.NewValue(args).(*reflect.StructValue);
for i := 0; i < v.NumField(); i++ {
p.adjustSpacingAndMergeComments();
f := v.Field(i);
switch x := f.Interface().(type) {
......
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