Skip to content

Commit

Permalink
Fix typo in Step trait
Browse files Browse the repository at this point in the history
  • Loading branch information
CAD97 authored Jan 8, 2021
1 parent e02b0f4 commit 02850d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/iter/range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit 02850d3

Please sign in to comment.