Mercurial > vim
diff runtime/doc/vim9.txt @ 32144:f3987fde6dea v9.0.1403
patch 9.0.1403: unused variables and functions
Commit: https://github.com/vim/vim/commit/e764d1b4219e6615a04df1c3a6a5c0210a0a7dac
Author: Dominique Pelle <dominique.pelle@gmail.com>
Date: Sun Mar 12 21:20:59 2023 +0000
patch 9.0.1403: unused variables and functions
Problem: Unused variables and functions.
Solution: Delete items and adjust #ifdefs. (Dominique Pell?, closes https://github.com/vim/vim/issues/12145)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 12 Mar 2023 22:30:05 +0100 |
parents | b2412874362f |
children | b2e8663e6dcc |
line wrap: on
line diff
--- a/runtime/doc/vim9.txt +++ b/runtime/doc/vim9.txt @@ -340,7 +340,7 @@ function, the function does not need to Variable declarations with :var, :final and :const ~ *vim9-declaration* *:var* *E1079* - *E1017* *E1020* *E1054* *E1087* *E1108* *E1124* + *E1017* *E1020* *E1054* *E1087* *E1124* Local variables need to be declared with `:var`. Local constants need to be declared with `:final` or `:const`. We refer to both as "variables" in this section. @@ -1664,8 +1664,8 @@ type, it can not be used in Vim9 script. *E1211* *E1217* *E1218* *E1219* *E1220* *E1221* *E1222* *E1223* *E1224* *E1225* *E1226* *E1227* - *E1228* *E1238* *E1250* *E1251* *E1252* *E1253* - *E1256* *E1297* *E1298* *E1301* + *E1228* *E1238* *E1250* *E1251* *E1252* *E1256* + *E1297* *E1298* *E1301* Types are checked for most builtin functions to make it easier to spot mistakes.