Skip to content

Commit

Permalink
Rollup merge of #74669 - Homarechan:fix_typo, r=lcnr
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
JohnTitor authored Jul 24, 2020
2 parents cff5953 + 37f6f7f commit 7f2bb29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/iter/range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub unsafe trait Step: Clone + PartialOrd + Sized {
/// * `steps_between(&a, &b) == Some(n)` only if `a <= b`
/// * Corollary: `steps_between(&a, &b) == Some(0)` if and only if `a == b`
/// * Note that `a <= b` does _not_ imply `steps_between(&a, &b) != None`;
/// this is the case wheen it would require more than `usize::MAX` steps to get to `b`
/// this is the case when it would require more than `usize::MAX` steps to get to `b`
/// * `steps_between(&a, &b) == None` if `a > b`
fn steps_between(start: &Self, end: &Self) -> Option<usize>;

Expand Down

0 comments on commit 7f2bb29

Please sign in to comment.