Function add_one

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

Adds one to the number given

ยงExample

use rust_cheatsheet::theory;
let x = 1;
let y = theory::add_one(x);
assert_eq!(y, x + 1);