runtime(doc): correct the :public example (#13795)
Commit:
https://github.com/vim/vim/commit/0aed99abf79c00fcd6b489a8eab646e2ba97876d
Author: Aliaksei Budavei <[email protected]>
Date: Fri Dec 29 01:08:24 2023 +0300
runtime(doc): correct the :public example
(https://github.com/vim/vim/issues/13795)
The current example is no longer supported (E1331), as of
patch 9.0.2167.
Signed-off-by: Aliaksei Budavei <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/doc/vim9class.txt b/runtime/doc/vim9class.txt
index a7ba2cd28..d8d461405 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.
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/E1rIyeg-001F6P-Dh%40256bit.org.