about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristopher Durham <cad97@cad97.com>2021-01-07 21:29:17 -0500
committerGitHub <noreply@github.com>2021-01-07 21:29:17 -0500
commit02850d3f30aef6d3ddce8fb0d4691019d6818b63 (patch)
treebc49ff03b5ce2757a5f3880912e54a003770b8ee
parente02b0f4a5540ed22053f18f917b9a18291280bc5 (diff)
downloadrust-02850d3f30aef6d3ddce8fb0d4691019d6818b63.tar.gz
rust-02850d3f30aef6d3ddce8fb0d4691019d6818b63.zip
Fix typo in Step trait
-rw-r--r--library/core/src/iter/range.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/iter/range.rs b/library/core/src/iter/range.rs
index cd8ab11cb84..4321b2187e1 100644
--- a/library/core/src/iter/range.rs
+++ b/library/core/src/iter/range.rs
@@ -111,7 +111,7 @@ pub unsafe trait Step: Clone + PartialOrd + Sized {
         Step::forward(start, count)
     }
 
-    /// Returns the value that would be obtained by taking the *successor*
+    /// Returns the value that would be obtained by taking the *predecessor*
     /// of `self` `count` times.
     ///
     /// If this would overflow the range of values supported by `Self`, returns `None`.