Add a parameter to another_function
This commit is contained in:
parent
ad1c063af0
commit
4bc2d864e1
1 changed files with 3 additions and 5 deletions
|
@ -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}");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue