Skip to content

Commit

Permalink
Mark Integer::divides as deprecated.
Browse files Browse the repository at this point in the history
  • Loading branch information
aobatact committed Apr 28, 2021
1 parent 4d166cb commit 3571df8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ pub trait Integer: Sized + Num + PartialOrd + Ord + Eq {
}

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

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

0 comments on commit 3571df8

Please sign in to comment.