tomoko_cargo_more
pub fn add_one(x: i32) -> i32
Adds one to the number given
// cargo test 连示例程序也会测试运行 let arg = 5; let answer = tomoko_cargo_more::add_one(arg); assert_eq!(6, answer);
This function might panic if the x is not i32 value