Function add_two

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

Adds two to the number given

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