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

Function get_sum

main.rs:103–105  ·  view source on GitHub ↗

You can pass arguments to functions

(x: i32, y: i32)

Source from the content-addressed store, hash-verified

101
102// You can pass arguments to functions
103fn get_sum(x: i32, y: i32){
104 println!("{} + {} = {}", x, y, x+y);
105}
106
107// Return a value
108fn get_sum_2(x: i32, y: i32) -> i32 {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected