From 37f6f7f4af8e726d33fb15c25e673984bb94172b Mon Sep 17 00:00:00 2001 From: kanimum Date: Thu, 23 Jul 2020 17:29:52 +0900 Subject: [PATCH] Fix typo --- src/libcore/iter/range.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/iter/range.rs b/src/libcore/iter/range.rs index 9f55f378a5cc1..9f34aee1947cd 100644 --- a/src/libcore/iter/range.rs +++ b/src/libcore/iter/range.rs @@ -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;