Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
103
fn get_sum(x: i32, y: i32){
104
println!(
"{} + {} = {}"
, x, y, x+y);
105
}
106
107
// Return a value
108
fn get_sum_2(x: i32, y: i32) -> i32 {
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected