Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 475 Bytes

README.md

File metadata and controls

34 lines (22 loc) · 475 Bytes

is-even-or-odd

Returns true if the given number is even or odd.

Install

Specify the dependencty in Cargo.toml:

[dependencies]
is-even-or-odd = "1"

Fetch it with cargo:

$ cargo build

Usage

use is_even_or_odd::IsEvenOrOdd;

let _i : i32 = 1;
println!("{}", _i.is_even_or_odd()); // prints true

About

License

Copyright © 2018, purewhite. Released under the MIT License.