Add a parameter to another_function

This commit is contained in:
Manuel Thalmann 2024-10-14 18:23:48 +02:00
parent ad1c063af0
commit 4bc2d864e1

View file

@ -1,9 +1,7 @@
fn main() { fn main() {
println!("Hello, world!"); another_function(5);
another_function();
} }
fn another_function() { fn another_function(x: i32) {
println!("Another function."); println!("The value of x is: {x}");
} }