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 authored and cuviper committed Feb 8, 2024
1 parent 9720c90 commit a51b3ff
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 @@ -201,6 +201,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 a51b3ff

Please sign in to comment.