crates_testing_bilal/lib.rs
1//! Math Utils
2//!
3//! gives you all the tools to help you building math problems
4/// Adds one to a number that is specified in the arguments
5/// # Examples
6/// ```
7/// let x = 5;
8/// let y = crates_testing_bilal::add_one(x);
9/// assert_eq!(y, 6);
10/// ```
11pub fn add_one(x: u32) -> u32 {
12 x + 1
13}
14
15/// Adds two to the number specified in the arguments
16/// # Examples
17/// ```
18/// let x = 5;
19/// let y = crates_testing_bilal::add_two(x);
20/// assert_eq!(y, 7);
21/// ```
22pub fn add_two(x: u32) -> u32 {
23 x + 2
24}