Skip to content

Commit

Permalink
actually fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
michirakara committed Sep 26, 2024
1 parent 7b3dc62 commit 4ab4aa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/iter/range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ impl<A: Step> Iterator for ops::Range<A> {
#[inline]
fn size_hint(&self) -> (usize, Option<usize>) {
if self.start < self.end {
(0, Some(0));
(0, Some(0))
} else {
Step::steps_between(&self.start, &self.end)
}
Expand Down

0 comments on commit 4ab4aa8

Please sign in to comment.