is-odd
is-odd copied to clipboard
Incorrect example on crates.io web page
This is what https://crates.io/crates/is-odd shows:
extern crate is_odd;
use is_odd::IsOdd;
let _i : i32 = 1;
println!("{}", _i.is_odd()); // prints false
It says "prints false" when in this GitHub repo's README it says "prints true". I'm not sure why https://crates.io/crates/is-odd doesn't match this repo but the crates.io README should be updated. I actually thought this library doesn't work properly from looking at crates.io.
Yes, I fixed it in the readme 4 years ago, but never got around to fixing it in the deployed crate.