Skip to content

Commit ae8b1b5

Browse files
committed
README: treat exmple code variable and doc
1 parent d7cc6a7 commit ae8b1b5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -153,29 +153,29 @@ and then you can call functions by `pluginname#util#system()`, without taking ca
153153
of `vital.vim` itself. It's all hidden.
154154

155155
Vital has module system. The below is an example to import/load a module
156-
`Data.OrderedSet` and to call a function `f()` of the module.
156+
`Math` and to call a function `lcm()` of the module.
157157

158158
```vim
159159
" Recommended way
160-
let s:O = vital#pluginname#import('Math')
161-
call s:O.lcm([2, 3, 4])
160+
let s:M = vital#pluginname#import('Math')
161+
call s:M.lcm([2, 3, 4])
162162
" -> 12
163163
```
164164

165165
or
166166

167167
```vim
168-
" Alternate way
168+
" Alternative way
169169
let s:V = vital#pluginname#new()
170-
let s:O = s:V.import('Math')
171-
call s:O.lcm([2, 3, 4])
170+
let s:M = s:V.import('Math')
171+
call s:M.lcm([2, 3, 4])
172172
" -> 12
173173
```
174174

175175
or
176176

177177
```vim
178-
" Alternate way only if you rarely use the module
178+
" Alternative way only if you rarely use the module
179179
let s:V = vital#pluginname#new()
180180
call s:V.load('Math')
181181
call s:V.Math.lcm([2, 3, 4])

0 commit comments

Comments
 (0)