Skip to content

Commit 02850d3

Browse files
authored
Fix typo in Step trait
1 parent e02b0f4 commit 02850d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/iter/range.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ pub unsafe trait Step: Clone + PartialOrd + Sized {
111111
Step::forward(start, count)
112112
}
113113

114-
/// Returns the value that would be obtained by taking the *successor*
114+
/// Returns the value that would be obtained by taking the *predecessor*
115115
/// of `self` `count` times.
116116
///
117117
/// If this would overflow the range of values supported by `Self`, returns `None`.

0 commit comments

Comments
 (0)