Skip to content

Commit

Permalink
Oops, range inclusive end. needed to do the plus 1.
Browse files Browse the repository at this point in the history
  • Loading branch information
scriptandcompile authored and zesterer committed Sep 12, 2024
1 parent 741cfc9 commit 41b562a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ impl Span for RangeInclusive<usize> {
*self.start()
}
fn end(&self) -> usize {
*self.end()
*self.end() + 1
}
}

Expand All @@ -114,7 +114,7 @@ impl<Id: fmt::Debug + Hash + PartialEq + Eq + ToOwned> Span for (Id, RangeInclus
*self.1.start()
}
fn end(&self) -> usize {
*self.1.end()
*self.1.end() + 1
}
}

Expand Down

0 comments on commit 41b562a

Please sign in to comment.