Skip to content

Commit 0aed99a

Browse files
authored
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 <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent 86fcada commit 0aed99a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

runtime/doc/vim9class.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*vim9class.txt* For Vim version 9.0. Last change: 2023 Dec 25
1+
*vim9class.txt* For Vim version 9.0. Last change: 2023 Dec 28
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -144,8 +144,8 @@ the closest valid value.
144144
If you don't care about side effects and want to allow the object variable to
145145
be changed at any time, you can make it public: >
146146
147-
public this.lnum: number
148-
public this.col: number
147+
public var lnum: number
148+
public var col: number
149149
150150
Now you don't need the SetLnum(), SetCol() and SetPosition() methods, setting
151151
"pos.lnum" directly above will no longer give an error.

0 commit comments

Comments
 (0)