summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorAliaksei Budavei <32549825+zzzyxwvut@users.noreply.github.com>2023-12-29 01:08:24 +0300
committerGitHub <noreply@github.com>2023-12-28 23:08:24 +0100
commit0aed99abf79c00fcd6b489a8eab646e2ba97876d (patch)
tree69c308e861b9cc075f46a2e9153000478e888d43 /runtime
parent86fcada95bb36471883862b9de2798306a4317c7 (diff)
runtime(doc): correct the :public example (#13795)
The current example is no longer supported (E1331), as of patch 9.0.2167. Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/vim9class.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/doc/vim9class.txt b/runtime/doc/vim9class.txt
index a7ba2cd286..d8d4614054 100644
--- a/runtime/doc/vim9class.txt
+++ b/runtime/doc/vim9class.txt
@@ -1,4 +1,4 @@
-*vim9class.txt* For Vim version 9.0. Last change: 2023 Dec 25
+*vim9class.txt* For Vim version 9.0. Last change: 2023 Dec 28
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -144,8 +144,8 @@ the closest valid value.
If you don't care about side effects and want to allow the object variable to
be changed at any time, you can make it public: >
- public this.lnum: number
- public this.col: number
+ public var lnum: number
+ public var col: number
Now you don't need the SetLnum(), SetCol() and SetPosition() methods, setting
"pos.lnum" directly above will no longer give an error.