summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorJuan M Gómez <info@jmgomez.me>2023-06-09 08:55:24 +0100
committerGitHub <noreply@github.com>2023-06-09 09:55:24 +0200
commita7682325a21cd8b23f5dd03a28814f0933509a82 (patch)
tree08fdfb6b5c0d57b378180a27235829cbbbbf3a22 /doc
parenta3bbb7124053397c32bf5fca3022f1d45f2aac2f (diff)
downloadNim-a7682325a21cd8b23f5dd03a28814f0933509a82.tar.gz
fixes typos in the constructor docs (#22035)
* fixes typos in the constructor docs

* updates constructor docs

* Update doc/manual_experimental.md

---------

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
Diffstat (limited to 'doc')
-rw-r--r--doc/manual_experimental.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/manual_experimental.md b/doc/manual_experimental.md
index 4e838d65d..54354f92b 100644
--- a/doc/manual_experimental.md
+++ b/doc/manual_experimental.md
@@ -2207,10 +2207,10 @@ NimPrinter().printConstRef(message, val)
 
 ```
 
-constructor pragma
+Constructor pragma
 ==================
 
-The `constructor` pragmas has two ways of being used: in conjunction with `importcpp` to import a C++ constructor and as a way to declare constructors that works similarly to `virtual`. 
+The `constructor` pragma can be used in two ways: in conjunction with `importcpp` to import a C++ constructor, and to declare constructors that operate similarly to `virtual`.
 
 Consider:
 
@@ -2263,4 +2263,4 @@ proc makeCppClass(): NimClass {.constructor: "NimClass() : CppClass(0, 0)".} =
 
 In the example above `CppClass` has a deleted default constructor. Notice how by using the constructor syntax, one can call the appropiate constructor. 
 
-Notice when calling constructor in a global variable, it will be called before `NimMain` meaning Nim is not fully initialized.
\ No newline at end of file
+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.
'>174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194