Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/beginning-rust-2e
/ f
Function
f
Source Code/09-20.rs:4–9 ·
view source on GitHub ↗
(x: i32)
Source
from the content-addressed store, hash-verified
2
5*/
3
fn main() {
4
fn f(x: i32) {
5
if x <= 0 { return; }
6
if x == 4 { return (); }
7
if x == 7 { return {}; }
8
print!(
"{}"
, x);
9
}
10
f(5);
11
}
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected