diff --git a/functions/src/main.rs b/functions/src/main.rs index 38be856..108da4f 100644 --- a/functions/src/main.rs +++ b/functions/src/main.rs @@ -1,9 +1,7 @@ fn main() { - println!("Hello, world!"); - - another_function(); + another_function(5); } -fn another_function() { - println!("Another function."); +fn another_function(x: i32) { + println!("The value of x is: {x}"); }