Skip to content

Commit

Permalink
Use newNode
Browse files Browse the repository at this point in the history
  • Loading branch information
manishrjain committed Nov 5, 2020
1 parent e6cf299 commit 750f5be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions contrib/demo/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ func main() {
root := newNode(-1)
n := root
for i := 0; i < N; i++ {
// nn := newNode(i)
nn := &node{val: i}
nn := newNode(i)
n.next = nn
n = nn
}
Expand Down

0 comments on commit 750f5be

Please sign in to comment.