Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
AsterDY committed Nov 13, 2023
1 parent 4b5e218 commit ff1132c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ast/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -1396,7 +1396,7 @@ func (self *Node) toGenericArrayUseNode() ([]Node, error) {
return []Node{}, nil
}

var out = make([]Node, nb)
var out = make([]Node, 0, nb)
it := self.values()
for v := it.next(); v != nil; v = it.next() {
out = append(out, *v)
Expand Down

0 comments on commit ff1132c

Please sign in to comment.