Skip to main content

adder/
lib.rs

1/// Adds one to the number given.
2///
3/// # Examples
4///
5/// ```
6/// let five = 5;
7///
8/// assert_eq!(6, adder::add_one(five));
9/// ```
10pub fn add_one(x: i32) -> i32 {
11    x + 1
12}