From 02850d3f30aef6d3ddce8fb0d4691019d6818b63 Mon Sep 17 00:00:00 2001 From: Christopher Durham Date: Thu, 7 Jan 2021 21:29:17 -0500 Subject: [PATCH] Fix typo in Step trait --- library/core/src/iter/range.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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`.