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 {
2020 /// without overflow.
2121 fn steps_between ( start : & Self , end : & Self ) -> Option < usize > ;
2222
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.
2426 fn replace_one ( & mut self ) -> Self ;
2527
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.
2731 fn replace_zero ( & mut self ) -> Self ;
2832
2933 /// Adds one to this step, returning the result.
You can’t perform that action at this time.
0 commit comments