MCPcopy Index your code
hub / github.com/derekbanas/Rust-Tutorial / get_2

Function get_2

main.rs:121–123  ·  view source on GitHub ↗

Return multiple values

(x: i32)

Source from the content-addressed store, hash-verified

119
120// Return multiple values
121fn get_2(x: i32) -> (i32, i32){
122 return (x+1, x+2);
123}
124
125fn print_str(x: String){
126 println!("A string {}", x);

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected