making a variable mutable

This commit is contained in:
Hariettemaina 2022-09-08 17:15:47 +03:00
parent 0a9f69fb83
commit 10b511edcc
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
// variables3.rs
// Execute `rustlings hint variables3` or use the `hint` watch subcommand for a hint.
// I AM NOT DONE
fn main() {
let x: i32 = 10;

View File

@ -4,7 +4,7 @@
// I AM NOT DONE
fn main() {
let x = 3;
let mut x = 3;
println!("Number {}", x);
x = 5; // don't change this line
println!("Number {}", x);