Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
121
fn get_2(x: i32) -> (i32, i32){
122
return (x+1, x+2);
123
}
124
125
fn print_str(x: String){
126
println!(
"A string {}"
, x);
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected