Skip to content

Commit

Permalink
bug: It's a node not an index. Root is 1 for node.
Browse files Browse the repository at this point in the history
  • Loading branch information
shanecelis committed Apr 22, 2024
1 parent b62ebf3 commit d36e29b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/louds/louds_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ impl<'a> Iterator for AncestorNodeIter<'a> {
type Item = LoudsNodeNum;
#[inline]
fn next(&mut self) -> Option<Self::Item> {
if self.node.0 == 0 {
if self.node.0 <= 1 {
None
} else {
let result = self.node;
Expand Down

0 comments on commit d36e29b

Please sign in to comment.