summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/endb.rst2
-rw-r--r--doc/manual.rst4
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