Skip to content

Commit ba77bbb

Browse files
authored
runtime(doc): fix typos.
* Fix typo in document (Related: #12516) * Fix E1363 duplication * Fix one more typo. Signed-off-by: Christian Brabandt <[email protected]>
1 parent b32064f commit ba77bbb

8 files changed

Lines changed: 14 additions & 14 deletions

File tree

runtime/doc/cmdline.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ An example for subtracting (which isn't very useful): >
788788
On this text:
789789
1 one ~
790790
2 two ~
791-
3 three FOLDED~
791+
3 three FOLDED ~
792792
4 four FOLDED ~
793793
5 five FOLDED ~
794794
6 six FOLDED ~

runtime/doc/eval.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2424,7 +2424,7 @@ v:progpath Contains the command with which Vim was invoked, in a form
24242424
".exe" is not added to v:progpath.
24252425
Read-only.
24262426

2427-
*v:python3_version* *python3-version-variable*
2427+
*v:python3_version* *python3-version-variable*
24282428
v:python3_version
24292429
Version of Python 3 that Vim was built against. When
24302430
Python is loaded dynamically (|python-dynamic|), this version

runtime/doc/filetype.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ So to enable this only for ruby, set the following variable: >
433433
:let g:ruby_exec = 1
434434
435435
If both, the global `plugin_exec` and the `<filetype>_exec` specific variable
436-
are set, the filetpe specific variable should have precedent.
436+
are set, the filetype specific variable should have precedent.
437437

438438
AWK *ft-awk-plugin*
439439

runtime/doc/pattern.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,7 @@ match ASCII characters, as indicated by the range.
10801080

10811081
\(\) A pattern enclosed by escaped parentheses. */\(* */\(\)* */\)*
10821082
E.g., "\(^a\)" matches 'a' at the start of a line.
1083-
There can only be ten of these. You can use "\%(" to add more, but
1083+
There can only be nine of these. You can use "\%(" to add more, but
10841084
not counting it as a sub-expression.
10851085
*E51* *E54* *E55* *E872* *E873*
10861086

runtime/doc/repeat.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,8 +1149,8 @@ Profiling should give a good indication of where time is spent, but keep in
11491149
mind there are various things that may clobber the results:
11501150

11511151
- The accuracy of the time measured depends on the gettimeofday(), or
1152-
clock_gettime if available, system function. The accuracy ranges from 1/100
1153-
second to nanoseconds. With clock_gettime the times are displayed in
1152+
clock_gettime() if available, system function. The accuracy ranges from
1153+
1/100 second to nanoseconds. With clock_gettime() the times are displayed in
11541154
nanoseconds, otherwise microseconds. You can use `has("prof_nsec")`.
11551155

11561156
- Real elapsed time is measured, if other processes are busy they may cause

runtime/doc/tags

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4458,7 +4458,7 @@ E136 starting.txt /*E136*
44584458
E1360 vim9class.txt /*E1360*
44594459
E1361 syntax.txt /*E1361*
44604460
E1362 vim9class.txt /*E1362*
4461-
E1363 vim9class.txt /*E1363*
4461+
E1363 vim9.txt /*E1363*
44624462
E1364 recover.txt /*E1364*
44634463
E1365 vim9class.txt /*E1365*
44644464
E1366 vim9class.txt /*E1366*

runtime/doc/vim9.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1557,7 +1557,7 @@ string to a number.
15571557

15581558
If a type is given where it is not expected you can get *E1272* .
15591559

1560-
If a type is incomplete you get *E1363*, e.g. when you have an object for
1560+
If a type is incomplete you get *E1363* , e.g. when you have an object for
15611561
which the class is not known (usually that is a null object).
15621562

15631563
Type inference ~
@@ -1756,7 +1756,7 @@ Exporting an item can be written as: >
17561756
export interface MyClass ...
17571757
< *E1043* *E1044*
17581758
As this suggests, only constants, variables, `:def` functions and classes can
1759-
be exported. {not implemented yet: class, interface}
1759+
be exported.
17601760

17611761
*E1042*
17621762
`:export` can only be used in Vim9 script, at the script level.
@@ -1862,9 +1862,9 @@ However, the namespace cannot be resolved on its own: >
18621862
<
18631863
This also affects the use of |<SID>| in the legacy mapping context. Since
18641864
|<SID>| is only a valid prefix for a function and NOT for a namespace, you
1865-
cannot use it
1866-
to scope a function in a script local namespace. Instead of prefixing the
1867-
function with |<SID>| you should use|<ScriptCmd>|. For example: >
1865+
cannot use it to scope a function in a script local namespace. Instead of
1866+
prefixing the function with |<SID>| you should use|<ScriptCmd>|. For example:
1867+
>
18681868
noremap ,a <ScriptCmd>:call s:that.OtherFunc()<CR>
18691869
<
18701870
*:import-cycle*

runtime/doc/vim9class.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ as the first character in the name, and it can be made public by prefixing
304304
*class-method*
305305
Class methods are also declared with "static". They can use the class
306306
variables but they have no access to the object variables, they cannot use the
307-
"this" keyword.
307+
"this" keyword:
308308
>
309309
class OtherThing
310310
this.size: number
@@ -656,7 +656,7 @@ When a variable is declared to have the type of an object, but it is not
656656
initialized, the value is null. When trying to use this null object Vim often
657657
does not know what class was supposed to be used. Vim then cannot check if
658658
a variable name is correct and you will get an "Using a null object" error,
659-
even when the variable name is invalid. *E1360* *E1362* *E1363*
659+
even when the variable name is invalid. *E1360* *E1362*
660660

661661

662662
Default constructor ~

0 commit comments

Comments
 (0)