progress variables

This commit is contained in:
2026-07-09 15:06:07 +02:00
parent 2b8273fd55
commit 8f249751ea
6 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -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 mut number = 3;
println!("Number plus two is: {}", number + 2);
}
+1 -1
View File
@@ -1,5 +1,5 @@
// TODO: Change the line below to fix the compiler error.
const NUMBER = 3;
const NUMBER: i32 = 3;
fn main() {
println!("Number: {NUMBER}");