Function add_one

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

Adds one to a number that is specified in the arguments

ยงExamples

let x = 5;
let y = crates::add_one(x);
assert_eq!(y, 6);