aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/eval.txt
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-07-18 08:08:56 +0800
committerGitHub <noreply@github.com>2024-07-18 08:08:56 +0800
commit18f1a3aaa5e28421ebe631346e5cca6f75c9b104 (patch)
tree804179651b5af6a26f4e91bc1bb2393fd0abbf7d /runtime/doc/eval.txt
parent185b22720de9156393ddc22c2c59dc3eb46b8d97 (diff)
downloadrneovim-18f1a3aaa5e28421ebe631346e5cca6f75c9b104.tar.gz
rneovim-18f1a3aaa5e28421ebe631346e5cca6f75c9b104.tar.bz2
rneovim-18f1a3aaa5e28421ebe631346e5cca6f75c9b104.zip
vim-patch:c1b3984: runtime(doc): minor updates. (#29778)
closes: vim/vim#15280 https://github.com/vim/vim/commit/c1b3984a7b3cd6adcd1f43e558cb04fad1af3182 Co-authored-by: Shane Harper <shane@shaneharper.net>
Diffstat (limited to 'runtime/doc/eval.txt')
-rw-r--r--runtime/doc/eval.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 7b4dba5a50..8e52b55bc7 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -2166,9 +2166,10 @@ text...
let lconst[0] = 2 " Error!
let lconst[1][0] = 'b' " OK
< *E995*
- |:const| does not allow to for changing a variable. >
+ It is an error to specify an existing variable with
+ :const. >
:let x = 1
- :const x = 2 " Error!
+ :const x = 1 " Error!
< *E996*
Note that environment variables, option values and
register values cannot be used here, since they cannot