From dedf0f3e19332c02562689b168cc4ac45b812174 Mon Sep 17 00:00:00 2001 From: data-man Date: Sat, 19 May 2018 20:02:49 +0300 Subject: [PATCH] Removed space between "array" and a square bracket in the docs --- doc/endb.rst | 2 +- doc/manual.rst | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/endb.rst b/doc/endb.rst index 6757d98e3..90bb964ba 100644 --- a/doc/endb.rst +++ b/doc/endb.rst @@ -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 diff --git a/doc/manual.rst b/doc/manual.rst index 44e2ee5b5..95af86a6a 100644 --- a/doc/manual.rst +++ b/doc/manual.rst @@ -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