about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-07-24 18:56:36 +0900
committerGitHub <noreply@github.com>2020-07-24 18:56:36 +0900
commit7f2bb29907c333ebb71e0cf651302ebc4fc0cb1e (patch)
treee56641e50196dca55b1f7e2d01d4de69519d458b /src
parentcff59532a8145e35ef193f5f33c0c154a9764241 (diff)
parent37f6f7f4af8e726d33fb15c25e673984bb94172b (diff)
downloadrust-7f2bb29907c333ebb71e0cf651302ebc4fc0cb1e.tar.gz
rust-7f2bb29907c333ebb71e0cf651302ebc4fc0cb1e.zip
Rollup merge of #74669 - Homarechan:fix_typo, r=lcnr
Fix typo
Diffstat (limited to 'src')
-rw-r--r--src/libcore/iter/range.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/iter/range.rs b/src/libcore/iter/range.rs
index 9f55f378a5c..9f34aee1947 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<usize>;