Function qubaitian_hello_cargo::add_one
source · pub fn add_one(x: i32) -> i32
Expand description
Adds one to the number given.
Examples
let arg = 5;
let answer = hello_cargo::add_one(arg);
assert_eq!(6, answer);
Adds two to the number given.
and i wrote a lot
cargo test –doc d cargo test –doc –no-run –bin=hello_cargo –package=hello_cargo –message-format=json