Removed space between "array" and a square bracket in the docs
This commit is contained in:
parent
94c45136ea
commit
dedf0f3e19
2 changed files with 3 additions and 3 deletions
|
|
@ -128,7 +128,7 @@ The ``watchpoint`` pragma is syntactically a statement. It can be used
|
|||
to mark a location as a watchpoint:
|
||||
|
||||
.. code-block:: Nim
|
||||
var a: array [0..20, int]
|
||||
var a: array[0..20, int]
|
||||
|
||||
{.watchpoint: a[3].}
|
||||
for i in 0 .. 20: a[i] = i
|
||||
|
|
|
|||
|
|
@ -2527,7 +2527,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:
|
||||
|
|
@ -6632,7 +6632,7 @@ Syntactically it has to be used as a statement inside the loop:
|
|||
enumA, enumB, enumC, enumD, enumE
|
||||
|
||||
proc vm() =
|
||||
var instructions: array [0..100, MyEnum]
|
||||
var instructions: array[0..100, MyEnum]
|
||||
instructions[2] = enumC
|
||||
instructions[3] = enumD
|
||||
instructions[4] = enumA
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue