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() {
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}");
}