mirror of
https://github.com/andwati/rustlings.git
synced 2026-11-22 11:48:47 +00:00
functions
This commit is contained in:
@@ -3,6 +3,6 @@ fn main() {
|
||||
println!("Spell a number: {number}");
|
||||
|
||||
// TODO: Fix the compiler error by changing the line below without renaming the variable.
|
||||
number = 3;
|
||||
let number = 3;
|
||||
println!("Number plus two is: {}", number + 2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user