Removed space between "array" and a square bracket in the docs

This commit is contained in:
data-man 2018-05-19 20:02:49 +03:00
commit dedf0f3e19
2 changed files with 3 additions and 3 deletions

View file

@ -128,7 +128,7 @@ The ``watchpoint`` pragma is syntactically a statement. It can be used
to mark a location as a watchpoint: to mark a location as a watchpoint:
.. code-block:: Nim .. code-block:: Nim
var a: array [0..20, int] var a: array[0..20, int]
{.watchpoint: a[3].} {.watchpoint: a[3].}
for i in 0 .. 20: a[i] = i for i in 0 .. 20: a[i] = i

View file

@ -2527,7 +2527,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:
@ -6632,7 +6632,7 @@ Syntactically it has to be used as a statement inside the loop:
enumA, enumB, enumC, enumD, enumE enumA, enumB, enumC, enumD, enumE
proc vm() = proc vm() =
var instructions: array [0..100, MyEnum] var instructions: array[0..100, MyEnum]
instructions[2] = enumC instructions[2] = enumC
instructions[3] = enumD instructions[3] = enumD
instructions[4] = enumA instructions[4] = enumA