Skip to content

Commit 07c1d0c

Browse files
committed
Fix minor typo
README: Fix minor typo Autoloadablize: Fix minor typo Vitalizer: Fix minor typo ConcurrentProcess: Fix minor typo Data.Closure: Fix minor typo Data.Dict: Fix minor typo Data.Either: Fix minor typo Data.List: Fix minor typo Data.List.Closure: Fix minor typo Data.Optional: Fix minor typo Data.Set: Fix minor typo Data.String: Fix minor typo DateTime: Fix minor typo Deprecated.Text.Sexp: Fix minor typo Hash.SHA1: Fix minor typo Process: Fix minor typo Random.Xor128: Fix minor typo Stream: Fix minor typo System.Cache: Fix minor typo System.Cache.Base: Fix minor typo System.Cache.File: Fix minor typo System.Cache.Memory: Fix minor typo System.Cache.SingleFile: Fix minor typo System.Filepath: Fix minor typo System.Process: Fix minor typo System.Process.Mock: Fix minor typo Text.Table: Fix minor typo Validator.Args: Fix minor typo Vim.ScriptLocal: Fix minor typo Vim.WindowLayout.BorderLayout: Fix minor typo Web.HTTP.Cookie: Fix minor typo Web.HTTP.CookieJar: Fix minor typo Web.XML: Fix minor typo
1 parent 833c903 commit 07c1d0c

38 files changed

+70
-70
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ We guarantee that the following versions of Vim are supported:
1111
* The latest major version (8.1.\*)
1212
* The previous major version (8.0.\*)
1313

14-
And some modules have stricter requirements and additioinal dependencies.
14+
And some modules have stricter requirements and additional dependencies.
1515
Please read the docs of each module before using them.
1616

1717
## Handling libraries in Vim WAS hard
@@ -175,7 +175,7 @@ A lot of vim plugins are using vital.vim
175175

176176
### Badges
177177

178-
It is not necessary but we recommend to add a badge to your project README to make the vital.vim developers happy ;-)
178+
It is not necessary but we recommend adding a badge to your project README to make the vital.vim developers happy ;-)
179179
The following is a markdown snippet.
180180

181181
```

autoload/vital/__vital__/ConcurrentProcess.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function! s:consume_all_blocking(label, varname, timeout_sec) abort
177177
while 1
178178
call s:tick(a:label)
179179
if s:is_done(a:label, a:varname)
180-
return s:consume(a:label, a:varname) + [0] " 0 as 'Did not timed out'
180+
return s:consume(a:label, a:varname) + [0] " 0 as 'Did not time out'
181181
elseif reltime(start)[0] >= a:timeout_sec
182182
return s:consume(a:label, a:varname) + [1] " 1 as 'Unfortunately it timed out'
183183
endif

autoload/vital/__vital__/Data/Dict.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function! s:swap(dict) abort
6363
return s:make(values(a:dict), keys(a:dict))
6464
endfunction
6565

66-
" Makes a index dict from a list
66+
" Makes an index dict from a list
6767
function! s:make_index(list, ...) abort
6868
let value = a:0 ? a:1 : 1
6969
return s:make(a:list, [], value)

autoload/vital/__vital__/Data/List.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function! s:concat(list) abort
9898
return memo
9999
endfunction
100100

101-
" Take each elements from lists to a new list.
101+
" Take all elements from lists to a new list.
102102
function! s:flatten(list, ...) abort
103103
let limit = a:0 > 0 ? a:1 : -1
104104
let memo = []
@@ -628,7 +628,7 @@ function! s:_get_binary_caller_(binary_f) abort
628628
endfunction
629629

630630
" This is similar to s:_call_binary_string_expr(),
631-
" but a:pair[0] is regarted as v:val, and a:pair[1] is regarted as v:memo.
631+
" but a:pair[0] is regarded as v:val, and a:pair[1] is regarded as v:memo.
632632
function! s:_call_binary_string_expr_val_memo(expr, pair) abort
633633
let x = substitute(a:expr, 'v:memo', string(a:pair[1]), 'g')
634634
let y = substitute(x, 'v:val', string(a:pair[0]), 'g')

autoload/vital/__vital__/Data/Optional.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ function! s:flatten(x, ...) abort
139139
endfunction
140140

141141
" Returns true for some({non optional}).
142-
" Otherwies, returns false.
142+
" Otherwise, returns false.
143143
" (Returns false for none().)
144144
function! s:_has_a_nest(x) abort
145145
return s:exists(a:x) && !s:is_optional(s:get(a:x))

autoload/vital/__vital__/DateTime.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ endfunction
712712
" parse_conv = unused.
713713
" at parse:
714714
" field = param name (with "_")
715-
" if it doesn't exists, the descriptor can't use.
715+
" if it doesn't exist, the descriptor can't use.
716716
" field = #skip
717717
" in this case, captor is a skipping pattern
718718
" captor = pattern to match.

autoload/vital/__vital__/Hash/SHA1.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
" Tsuyoshi CHO <[email protected]>
33
" License CC0
44
" Code:
5-
" based on RFC 3174 Refeerence implementation. https://tools.ietf.org/html/rfc3174
5+
" based on RFC 3174 Reference implementation. https://tools.ietf.org/html/rfc3174
66
" based on Vim implementation vim-scripts/sha1.vim (Licensed)
77

88
let s:save_cpo = &cpo
@@ -309,7 +309,7 @@ function! s:sha1context.length.sizeset(data) dict abort
309309
let self.low = s:_uint32(s:bitwise.lshift(len(a:data), 3))
310310

311311
" SHA1 2^64 - 1 overflow check
312-
" 0xh0000000 is not 0, then overflow it(byte data are Vim List;it can contains 2^64 - 1 item)
312+
" 0xh0000000 is not 0, then overflow it(byte data are Vim List;it can contain 2^64 - 1 item)
313313
if (has('num64') && (0 != s:_uint32(s:bitwise.rshift(len(a:data), 32 + (32 - 3)))))
314314
let self.high = 0
315315
let self.low = 0

autoload/vital/__vital__/Vim/ScriptLocal.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ endfunction
7777

7878
"" Return SID from the given path
7979
" return -1 if the given path is not found in scriptnames()
80-
" NOTE: it execute `:source` a given path once if the file haven't sourced yet
80+
" NOTE: it executes `:source` a given path once if the file hasn't sourced yet
8181
function! s:sid(path) abort
8282
if s:cache.sid.has(a:path)
8383
return s:cache.sid.get(a:path)

autoload/vital/__vital__/Web/XML.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ function! s:__parse_tree(ctx, top) abort
221221
" closing tag: pop from stack and continue at upper level
222222
exec append_content_to_parent
223223

224-
if len(stack) " TODO: checking whether opened tag is exist.
224+
if len(stack) " TODO: checking whether opened tag exists.
225225
call remove(stack, -1)
226226
endif
227227
continue

autoload/vital/vital.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ function! s:_sid(path, filter_pattern) abort
275275
return 0
276276
endfunction
277277

278-
" We want to use a execute() builtin function instead of s:_execute(),
278+
" We want to use an execute() builtin function instead of s:_execute(),
279279
" however there is a bug in execute().
280280
" execute() returns empty string when it is called in
281281
" completion function of user defined ex command.

autoload/vitalizer.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ function! s:get_changes() abort
246246
throw 'vitalizer: parse error in Changes file'
247247
endif
248248
" If "Modules: *" is specified, or "Modules: ..." line is
249-
" not specified, show the change always.
249+
" not specified, always show the change.
250250
let modules = modules ==# '*' ? '' : modules
251251
let changes[lines[0]] = {'text': text, 'modules': split(modules, '[^[:alnum:].]\+')}
252252
endfor

data/vital/autoloadablize.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
" ___vital___
22
" NOTE: lines between '" ___vital___' is generated by :Vitalize.
3-
" Do not mofidify the code nor insert new lines before '" ___vital___'
3+
" Do not modify the code nor insert new lines before '" ___vital___'
44
function! s:_SID() abort
55
return matchstr(expand('<sfile>'), '<SNR>\zs\d\+\ze__SID$')
66
endfunction

doc/vital.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ We guarantee that the following versions of Vim are supported:
3030
* The latest major version (8.1.*)
3131
* The previous major version (8.0.*)
3232

33-
And some modules have stricter requirements and additioinal dependencies.
33+
And some modules have stricter requirements and additional dependencies.
3434
Please read the docs of each module before using them.
3535

3636
==============================================================================
@@ -103,7 +103,7 @@ FUNCTIONS *Vital-functions*
103103
vital#{plugin-name}#new() *vital#{plugin-name}#new()*
104104
Creates a new Vital object(|Vital-Vital-object|).
105105
If you just want to use |Vital-Vital.import()|, You can use
106-
|vital#{plugin-name}#import()| instead without any peformance
106+
|vital#{plugin-name}#import()| instead without any performance
107107
degradation.
108108

109109
vital#{plugin-name}#import({module-name}) *vital#{plugin-name}#import()*

doc/vital/ConcurrentProcess.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ is_busy({label}) *Vital.ConcurrentProcess.is_busy()*
288288
This is an action |Vital.ConcurrentProcess-term.action|, and checks
289289
if the queries are currently empty.
290290

291-
This function is possibly used for checking if you can querying
291+
This function is possibly used for checking if you can query
292292
something light and get the response immedicately, with using
293293
consume_all_blocking(), like for code completion.
294294

doc/vital/Data/Closure.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ from_command({command} [, {binding}]) *Vital.Data.Closure.from_command()*
118118

119119
from_operator({operator}) *Vital.Data.Closure.from_operator()*
120120
Builds a Closure object from {operator}.
121-
{operator} is a operator string such as '+', '%', or '=~#'
121+
{operator} is an operator string such as '+', '%', or '=~#'
122122

123123
from_method({object}, {method}) *Vital.Data.Closure.from_method()*
124124
Builds a Closure object from {object}(Dictionary) and the name of

doc/vital/Data/Either.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Either simply holds one of two different structures
2222
>
2323
function! AuthFooAccount(account_name, account_password) abort
2424
" Send the information to somewhere.
25-
" Return some response as {right} value if the operation is succeed.
25+
" Return some response as {right} value if the operation succeed.
2626
" Otherwise, return {left} value.
2727
endfunction
2828
@@ -132,7 +132,7 @@ map({either}, {f}) *Vital.Data.Either.map()*
132132
<
133133

134134
map_left({either}, {f}) *Vital.Data.Either.map_left()*
135-
Simular to |Vital.Data.Either.map()|, but map {f} to {left}.
135+
Similar to |Vital.Data.Either.map()|, but map {f} to {left}.
136136
>
137137
let either = E.left(10)
138138
echo E.map_left(either, 'v:val + 1') " left(11)

doc/vital/Data/List.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ filter({list}, {function}) *Vital.Data.List.filter()*
181181
echo s:L.filter(xs, 'v:val % 2 is 0')
182182
" [0, 2, 4, 6, 8]
183183
<
184-
But this maybe slower than buildin |filter()|.
184+
But this maybe slower than builtin |filter()|.
185185

186186
Non-destructive. This does not modify {list}.
187187

doc/vital/Data/List/Closure.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ INTRODUCTION *Vital.Data.List.Closure-introduction*
3131
<
3232
Notice:
3333
This module doesn't have the job safety. I recommend to use |Data.List|
34-
directly if you use Vim 8 or later. (This problem depends unlifting of
34+
directly if you use Vim 8 or later. (This problem depends on unlifting of
3535
{closure} to |Funcref|)
3636

3737

doc/vital/Data/Optional.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ optional value.
6464
TERM *Vital.Data.Optional-term*
6565

6666
{optional} *Vital.Data.Optional-term-optional*
67-
{optional} is a optional value. It is a |List| of 0 or 1 element
67+
{optional} is an optional value. It is a |List| of 0 or 1 element
6868
actually.
6969

7070
{none} *Vital.Data.Optional-term-none*
@@ -218,7 +218,7 @@ bind({func}, {args}...) *Vital.Data.Optional.bind()*
218218
<
219219

220220
flat_map({func}, {arg}) *vital.Data.Optional.flat_map()*
221-
Simular to |vital.Data.Optional.bind()| for the single argument.
221+
Similar to |vital.Data.Optional.bind()| for the single argument.
222222

223223
flatten({optional}, [{limit}]) *Vital.Data.Optional.flatten()*
224224
Flattens a nested from optional values by default.

doc/vital/Data/Set.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ frozenset([{list}], [{hashfunc}]) *Vital.Data.Set.frozen()*
5050
Returns a new 'Frozen' object which has not mutable methods
5151
(|Vital.Data.Set-Set-mutable|).
5252

53-
{hashfunc} is used to hash the value for identifying each elements.
53+
{hashfunc} is used to hash the value for identifying each element.
5454

5555
Example: >
5656
function! s:my_hash_func(x) abort

doc/vital/Data/String.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ dstring({expr}) *Vital.Data.String.dstring()*
137137
" '"abc"'
138138
<
139139
lines({str}) *Vital.Data.String.lines()*
140-
Splits into list of strings of each lines of {str}.
140+
Splits into list of strings of each line of {str}.
141141

142142
strchars({str}) *Vital.Data.String.strchars()*
143143
Returns the number of characters in String {str}.

doc/vital/Deprecated/Text/Sexp.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ INTERFACE |Vital.Deprecated.Text.Sexp-interface|
1212
==============================================================================
1313
INTRODUCTION *Vital.Deprecated.Text.Sexp-introduction*
1414

15-
*Vital.Deprecated.Text.Sexp* is a S-Expression parsing library. For performance it uses
15+
*Vital.Deprecated.Text.Sexp* is an S-Expression parsing library. For performance it uses
1616
lua, so the Vim that runs this needs |+lua|.
1717

1818
==============================================================================

doc/vital/Process.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ INTERFACE *Vital.Process-interface*
2323
FUNCTIONS *Vital.Process-functions*
2424

2525
spawn({command} [, {special}]) *Vital.Process.spawn()*
26-
Execute program in the background from Vim. Return an empty string
27-
always.
26+
Execute program in the background from Vim. Always return an empty
27+
string.
2828

2929
{command} is |List| or |String| to run as background process.
3030
If {command} is a |List|, it'll |shellescape()| each argument.

doc/vital/Random/Xor128.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Generator.max() *Vital.Random.Xor128-Generator.max()*
7474
Get the largest possible value in the output range.
7575

7676
Generator.seed({seeds}) *Vital.Random.Xor128-Generator.seed()*
77-
Initialze the generator with the given seed list.
77+
Initialize the generator with the given seed list.
7878

7979

8080
==============================================================================

doc/vital/Stream.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ zip({streams})
150150
<
151151
*Vital.Stream.concat()*
152152
concat({streams})
153-
Concatenates given streams. If any of stream is an inifinite stream,
153+
Concatenates given streams. If any of stream is an infinite stream,
154154
a result stream is an infinite stream.
155155
>
156156
" Output: [1,2,3,4]

doc/vital/System/Cache.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*vital/System/Cache.txt* An unified cache system
1+
*vital/System/Cache.txt* A unified cache system
22

33
Maintainer: Alisue <[email protected]>
44

@@ -16,7 +16,7 @@ Interface |Vital.System.Cache-interface|
1616
==============================================================================
1717
INTRODUCTIONS *Vital.System.Cache-intro*
1818

19-
*Vital.System.Cache* is an unified cache system. All variants (backends) share
19+
*Vital.System.Cache* is a unified cache system. All variants (backends) share
2020
the application interface so users can easily switch to a different cache
2121
variant. Currently the following variants are available.
2222

@@ -57,7 +57,7 @@ If you just want to use a particular variant and want to reduce the size of
5757
your vital directory, you can directly import the variant without using
5858
|Vital.System.Cache| module like:
5959
>
60-
" You don't need a first argument for new() while you are direcly
60+
" You don't need a first argument for new() while you are directly
6161
" importing a particular variant
6262
let s:Cache = s:V.import('System.Cache.File')
6363
let s:cache = s:Cache.new({ 'cache_dir': '~/.cache/foo' })
@@ -149,8 +149,8 @@ has({name}) *Vital.System.Cache-instance.has()*
149149

150150
get({name}[, {default}]) *Vital.System.Cache-instance.get()*
151151

152-
Return a value from a {name} cache. It no {name} cache is found, it
153-
return {default} or an empty |String|.
152+
Return a value from a {name} cache. If no {name} cache is found, it
153+
returns {default} or an empty |String|.
154154

155155
{name} (required)
156156
A name of the cache. An actual cache key should have been created via

doc/vital/System/Cache/Base.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ cache_key({obj}) *Vital.System.Cache.Base-instance.cache_key()*
124124

125125
Return a |String| which will be used as a cache key.
126126
Variants can override this method to create a cache key from {obj}.
127-
In default, it return {obj} if the {obj} is |String|. Otherwise it
128-
return a string representation (See |string()| for details) of the
127+
In default, it returns {obj} if the {obj} is |String|. Otherwise it
128+
returns a string representation (See |string()| for details) of the
129129
{obj}.
130130

131131
has({name}) *Vital.System.Cache.Base-instance.has()*
@@ -149,7 +149,7 @@ has({name}) *Vital.System.Cache.Base-instance.has()*
149149
*Vital.System.Cache.Base-instance.get()*
150150
get({name}[, {default}])
151151

152-
Return a {name} cache. It no {name} cache is found, it return
152+
Return a {name} cache. If no {name} cache is found, it returns
153153
{default} or an empty |String|.
154154

155155
VARIANTS MUST OVERRIDE THIS METHOD
@@ -231,7 +231,7 @@ clear() *Vital.System.Cache.Base-instance.clear()*
231231
on_changed() *Vital.System.Cache.Base-instance.on_changed()*
232232

233233
A user defined hook method. This method is called when the content of
234-
the cache is changed, namely after the follwing methods:
234+
the cache is changed, namely after the following methods:
235235
- |Vital.System.Cache.Base-instance.set()|
236236
- |Vital.System.Cache.Base-instance.remove()|
237237
- |Vital.System.Cache.Base-instance.clear()|

doc/vital/System/Cache/File.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ has({name}) *Vital.System.Cache.File-instance.has()*
9999
*Vital.System.Cache.File-instance.get()*
100100
get({name}[, {default}])
101101

102-
Return a cached value of {name} in a cache directory. It return
102+
Return a cached value of {name} in a cache directory. It returns
103103
{default} if no value is found.
104104

105105
{name} (required)
@@ -142,7 +142,7 @@ clear() *Vital.System.Cache.File-instance.clear()*
142142
Clear all files in the cache directory without prompts.
143143

144144
CAUTION
145-
It remove all files in the directory. Make sure the correct cache
145+
It removes all files in the directory. Make sure the correct cache
146146
directory is specified in the instance.
147147

148148
on_changed() *Vital.System.Cache.File-instance.on_changed()*

doc/vital/System/Cache/Memory.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ has({name}) *Vital.System.Cache.Memory-instance.has()*
7575
*Vital.System.Cache.Memory-instance.get()*
7676
get({name}[, {default}])
7777

78-
Return a cached value of {name} in a cache dictionary. It return
78+
Return a cached value of {name} in a cache dictionary. It returns
7979
{default} if no value is found.
8080

8181
{name} (required)

doc/vital/System/Cache/SingleFile.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ has({name}) *Vital.System.Cache.SingleFile-instance.has()*
101101
*Vital.System.Cache.SingleFile-instance.get()*
102102
get({name}[, {default}])
103103

104-
Return a cached value of {name} in a cache dictionary. It return
104+
Return a cached value of {name} in a cache dictionary. It returns
105105
{default} if no value is found.
106106

107107
{name} (required)
@@ -169,7 +169,7 @@ autodump *Vital.System.Cache.SingleFile-instance.autodump*
169169

170170
A boolean to enable/disable autodump feature.
171171
If the value is 1, |Vital.System.Cache.SingleFile-instance.dump()|
172-
will be automatically calledn when the cache content is changed.
172+
will be automatically called when the cache content is changed.
173173
Otherwise users need to call the method manually to dump the cache
174174
content into a cache file.
175175

0 commit comments

Comments
 (0)