Skip to content

Commit 3571df8

Browse files
committed
Mark Integer::divides as deprecated.
1 parent 4d166cb commit 3571df8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ pub trait Integer: Sized + Num + PartialOrd + Ord + Eq {
209209
}
210210

211211
/// Deprecated, use `is_multiple_of` instead.
212+
#[deprecated(note = "Please use is_multiple_of instead")]
212213
fn divides(&self, other: &Self) -> bool;
213214

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

0 commit comments

Comments
 (0)