Function add_one

Source
pub fn add_one(number: i32) -> i32
Expand description

Adds one to the number given.

§Examples

§Use

let arg = 5;
let answer = my_crate::add_one(arg);

assert_eq!(6, answer)

§Panic

§Errors

§Safety