Skip to content

Commit

Permalink
bug fix: interiorP should be assigned by interiorP.parent()
Browse files Browse the repository at this point in the history
  • Loading branch information
heeeeeng committed Oct 21, 2019
1 parent cc842c7 commit f0bc5de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (bt *BTree) Insert(key int, value string) {
return
}

interior, interiorP = interiorP, interior.parent()
interior, interiorP = interiorP, interiorP.parent()
}
}

Expand Down

0 comments on commit f0bc5de

Please sign in to comment.