MCPcopy Create free account
hub / github.com/derekbanas/Rust-Tutorial / get_sum_3

Function get_sum_3

main.rs:116–118  ·  view source on GitHub ↗

You can also use return

(x: i32, y: i32)

Source from the content-addressed store, hash-verified

114
115// You can also use return
116fn get_sum_3(x: i32, y: i32) -> i32 {
117 return x + y;
118}
119
120// Return multiple values
121fn get_2(x: i32) -> (i32, i32){

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected