rustlings/exercises/02_functions/functions1.rs
2024-01-31 11:10:06 -05:00

16 lines
396 B
Rust

// functions1.rs
//
// Execute `rustlings hint functions1` or use the `hint` watch subcommand for a
// hint.
fn main() {
println!("You define functions outside of main and call them here.");
println!("Call me.");
// Rust doesn't care where the function is defined, as long as it's within the scope.
call_me();
}
fn call_me() {
println!("Beep me. If you wanna reach me.");
}