MCPcopy 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

25*/
3fn 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

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected