Revise docs.
This commit is contained in:
@@ -9,7 +9,9 @@ Constants follow the same naming rules as [variables].
|
||||
|
||||
```rust
|
||||
const x = 42;
|
||||
|
||||
print(x * 2); // prints 84
|
||||
|
||||
x = 123; // <- syntax error: cannot assign to constant
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user