doc: fix typos (#22869)

doc: fix typos
This commit is contained in:
shuoer86
2023-10-25 20:53:15 +08:00
committed by GitHub
parent 3fd4e68433
commit 7c3917d1dd
4 changed files with 5 additions and 5 deletions

View File

@@ -621,7 +621,7 @@ compilation options are different:
.. Note:: markup documents are just placed into the specified directory
`OUTDIR`:option: by default (i.e. they are **not** affected by
`--project`:option:), so if you have ``PROJECT/doc/manual.md``
document and want to use complex hirearchy (with ``doc/``),
document and want to use complex hierarchy (with ``doc/``),
compile it with `--docroot`:option:\:
```cmd
# 1st stage
@@ -688,7 +688,7 @@ the rest optional. See the [Index (idx) file format] section for details.
.. Note:: `--index`:option: switch only affects creation of ``.idx``
index files, while user-searchable Index HTML file is created by
`buildIndex`:option: commmand.
`buildIndex`:option: command.
Buildindex command
------------------

View File

@@ -2378,7 +2378,7 @@ proc makeCppClass(): NimClass {.constructor: "NimClass() : CppClass(0, 0)".} =
result.x = 1
```
In the example above `CppClass` has a deleted default constructor. Notice how by using the constructor syntax, one can call the appropiate constructor.
In the example above `CppClass` has a deleted default constructor. Notice how by using the constructor syntax, one can call the appropriate constructor.
Notice when calling a constructor in the section of a global variable initialization, it will be called before `NimMain` meaning Nim is not fully initialized.

View File

@@ -246,7 +246,7 @@ nim md2html file2.md # creates ``htmldocs/file2.html``
```
To allow cross-references between any files in any order (especially, if
circular references are present), it's strongly reccommended
circular references are present), it's strongly recommended
to make a run for creating all the indexes first:
```cmd

View File

@@ -486,7 +486,7 @@ DLL generation
==============
**Note**: The same rules apply to `lib*.so` shared object files on UNIX. For better
readability only the DLL version is decribed here.
readability only the DLL version is described here.
Nim supports the generation of DLLs. However, there must be only one
instance of the GC per process/address space. This instance is contained in