Fix typo in Step trait

This commit is contained in:
Christopher Durham 2021-01-07 21:29:17 -05:00 committed by GitHub
parent e02b0f4a55
commit 02850d3f30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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`.