File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -20,10 +20,14 @@ pub trait Step: Clone + PartialOrd + Sized {
20
20
/// without overflow.
21
21
fn steps_between ( start : & Self , end : & Self ) -> Option < usize > ;
22
22
23
- /// Replaces this step with `1`, returning itself.
23
+ /// Replaces this step with `1`, returning a clone of itself.
24
+ ///
25
+ /// The output of this method should always be greater than the output of replace_zero.
24
26
fn replace_one ( & mut self ) -> Self ;
25
27
26
- /// Replaces this step with `0`, returning itself.
28
+ /// Replaces this step with `0`, returning a clone of itself.
29
+ ///
30
+ /// The output of this method should always be less than the output of replace_one.
27
31
fn replace_zero ( & mut self ) -> Self ;
28
32
29
33
/// Adds one to this step, returning the result.
You can’t perform that action at this time.
0 commit comments