keep casing of noinit and noreturn pragmas consistently documented (#19535)

This commit is contained in:
tersec 2022-02-18 15:06:11 +00:00 • committed by GitHub
commit f019e999d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2818,7 +2818,7 @@ The implicit initialization can be avoided for optimization reasons with the
.. code-block:: nim .. code-block:: nim
var 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 If a proc is annotated with the `noinit` pragma, this refers to its implicit
`result` variable: `result` variable:
@ -6636,7 +6636,7 @@ but accessed at runtime:
doAssert nameToProc[2][1]() == "baz" doAssert nameToProc[2][1]() == "baz"
noReturn pragma noreturn pragma
--------------- ---------------
The `noreturn` pragma is used to mark a proc that never returns. The `noreturn` pragma is used to mark a proc that never returns.