mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 14:00:35 +00:00
keep casing of noinit and noreturn pragmas consistently documented (#19535)
This commit is contained in:
@@ -2818,7 +2818,7 @@ The implicit initialization can be avoided for optimization reasons with the
|
||||
|
||||
.. code-block:: nim
|
||||
var
|
||||
a {.noInit.}: array[0..1023, char]
|
||||
a {.noinit.}: array[0..1023, char]
|
||||
|
||||
If a proc is annotated with the `noinit` pragma, this refers to its implicit
|
||||
`result` variable:
|
||||
@@ -6636,7 +6636,7 @@ but accessed at runtime:
|
||||
doAssert nameToProc[2][1]() == "baz"
|
||||
|
||||
|
||||
noReturn pragma
|
||||
noreturn pragma
|
||||
---------------
|
||||
The `noreturn` pragma is used to mark a proc that never returns.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user