You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the documentation n itself should not be a member of get_divisors(n). But get_divisors(2) evaluates to [2] when it should evaluate to []. This holds for 2u8, 2u16, 2u32, 2u64, 2u128 and 2usize.
Tested with divisors v0.2.1 and rustc 1.43.1
The text was updated successfully, but these errors were encountered:
Since this repo has not been maintained since 2019, I made a new crate based on this to fix the bug, as well as using the proper definition of divisors to include 1 and n:
According to the documentation n itself should not be a member of
get_divisors(n)
. Butget_divisors(2)
evaluates to[2]
when it should evaluate to[]
. This holds for 2u8, 2u16, 2u32, 2u64, 2u128 and 2usize.Tested with divisors v0.2.1 and rustc 1.43.1
The text was updated successfully, but these errors were encountered: