mirror of
https://github.com/iggredible/Learn-Vim
synced 2025-02-25 11:17:12 +00:00
Clarify example on immutable variable
This commit is contained in:
parent
9fd68f178e
commit
66439f1bf9
1 changed files with 0 additions and 7 deletions
|
@ -40,14 +40,7 @@ You can define an immutable variable with `const`.
|
||||||
|
|
||||||
```
|
```
|
||||||
const waffle = "waffle"
|
const waffle = "waffle"
|
||||||
|
|
||||||
echo waffle
|
|
||||||
"return waffle
|
|
||||||
|
|
||||||
const waffle = "pancake"
|
const waffle = "pancake"
|
||||||
" returns error
|
|
||||||
|
|
||||||
let waffle = "pancake"
|
|
||||||
" throws an error
|
" throws an error
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue