@@ -15,7 +15,7 @@ use super::{FusedIterator, TrustedLen};
15
15
/// This trait is `unsafe` because its implementation must be correct for
16
16
/// the safety of `unsafe trait TrustedLen` implementations, and the results
17
17
/// 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.
19
19
#[ unstable( feature = "step_trait" , reason = "recently redesigned" , issue = "42168" ) ]
20
20
pub unsafe trait Step : Clone + PartialOrd + Sized {
21
21
/// Returns the number of *successor* steps required to get from `start` to `end`.
@@ -27,8 +27,8 @@ pub unsafe trait Step: Clone + PartialOrd + Sized {
27
27
///
28
28
/// For any `a`, `b`, and `n`:
29
29
///
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)`
32
32
/// * `steps_between(&a, &b) == Some(n)` only if `a <= b`
33
33
/// * Corollary: `steps_between(&a, &b) == Some(0)` if and only if `a == b`
34
34
/// * Note that `a <= b` does _not_ imply `steps_between(&a, &b) != None`;
0 commit comments