[][src]Function tomoko_cargo_more::add_one

pub fn add_one(x: i32) -> i32

Adds one to the number given

Examples

// cargo test 连示例程序也会测试运行
let arg = 5;
let answer = tomoko_cargo_more::add_one(arg);

assert_eq!(6, answer);

Panics

This function might panic if the x is not i32 value