Skip to content

Commit ef58949

Browse files
committed
Auto merge of rust-lang#80808 - CAD97:patch-3, r=nagisa
Fix typo in Step trait ... I don't know how this major typo happened, whoops 🙃 `@bors` rollup=always (comment only change)
2 parents 46c35c7 + 02850d3 commit ef58949

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)