Skip to content

Commit fc497f9

Browse files
committed
fix typo that led to infinite recursion
1 parent 7f3c976 commit fc497f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

astcopy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func Ellipsis(x *ast.Ellipsis) *ast.Ellipsis {
121121
return nil
122122
}
123123
cp := *x
124-
cp.Elt = copyExpr(x)
124+
cp.Elt = copyExpr(x.Elt)
125125
return &cp
126126
}
127127

0 commit comments

Comments
 (0)