Skip to content

Commit a51b3ff

Browse files
aobatactcuviper
authored andcommitted
Mark Integer::divides as deprecated.
1 parent 9720c90 commit a51b3ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ pub trait Integer: Sized + Num + PartialOrd + Ord + Eq {
201201
}
202202

203203
/// Deprecated, use `is_multiple_of` instead.
204+
#[deprecated(note = "Please use is_multiple_of instead")]
204205
fn divides(&self, other: &Self) -> bool;
205206

206207
/// Returns `true` if `self` is a multiple of `other`.

0 commit comments

Comments
 (0)