We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e76df0a commit 4ae1159Copy full SHA for 4ae1159
C01-ThompsonBook-attempt-01/hello_rust/src/main.rs
@@ -1,3 +1,4 @@
1
fn main() {
2
- println!("Hello, world!");
+ let x = 5; // Declares an immutable variable 'x' with the value 5
3
+ // x = 10; // Error: Cannot assign a new value to an immutable variable
4
}
0 commit comments