@@ -15,7 +15,7 @@ use super::{FusedIterator, TrustedLen};
1515/// This trait is `unsafe` because its implementation must be correct for
1616/// the safety of `unsafe trait TrustedLen` implementations, and the results
1717/// of using this trait can otherwise be trusted by `unsafe` code to be correct
18- /// and fulful the listed obligations.
18+ /// and fulfill the listed obligations.
1919#[ unstable( feature = "step_trait" , reason = "recently redesigned" , issue = "42168" ) ]
2020pub unsafe trait Step : Clone + PartialOrd + Sized {
2121 /// Returns the number of *successor* steps required to get from `start` to `end`.
@@ -27,8 +27,8 @@ pub unsafe trait Step: Clone + PartialOrd + Sized {
2727 ///
2828 /// For any `a`, `b`, and `n`:
2929 ///
30- /// * `steps_between(&a, &b) == Some(n)` if and only if `Step::forward (&a, n) == Some(b)`
31- /// * `steps_between(&a, &b) == Some(n)` if and only if `Step::backward (&a, n) == Some(a)`
30+ /// * `steps_between(&a, &b) == Some(n)` if and only if `Step::forward_checked (&a, n) == Some(b)`
31+ /// * `steps_between(&a, &b) == Some(n)` if and only if `Step::backward_checked (&a, n) == Some(a)`
3232 /// * `steps_between(&a, &b) == Some(n)` only if `a <= b`
3333 /// * Corollary: `steps_between(&a, &b) == Some(0)` if and only if `a == b`
3434 /// * Note that `a <= b` does _not_ imply `steps_between(&a, &b) != None`;
0 commit comments