We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cff5953 + 37f6f7f commit 7f2bb29Copy full SHA for 7f2bb29
src/libcore/iter/range.rs
@@ -32,7 +32,7 @@ pub unsafe trait Step: Clone + PartialOrd + Sized {
32
/// * `steps_between(&a, &b) == Some(n)` only if `a <= b`
33
/// * Corollary: `steps_between(&a, &b) == Some(0)` if and only if `a == b`
34
/// * Note that `a <= b` does _not_ imply `steps_between(&a, &b) != None`;
35
- /// 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`
36
/// * `steps_between(&a, &b) == None` if `a > b`
37
fn steps_between(start: &Self, end: &Self) -> Option<usize>;
38
0 commit comments