summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--lib/system.nim12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/system.nim b/lib/system.nim
index a7e215168..2e5d5ae19 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -4127,13 +4127,13 @@ template once*(body: untyped): untyped =
   ## re-executed on each module reload.
   ##
   ## .. code-block:: nim
-  ## proc draw(t: Triangle) =
-  ##   once:
-  ##     graphicsInit()
   ##
-  ##   line(t.p1, t.p2)
-  ##   line(t.p2, t.p3)
-  ##   line(t.p3, t.p1)
+  ##  proc draw(t: Triangle) =
+  ##    once:
+  ##      graphicsInit()
+  ##    line(t.p1, t.p2)
+  ##    line(t.p2, t.p3)
+  ##    line(t.p3, t.p1)
   ##
   var alreadyExecuted {.global.} = false
   if not alreadyExecuted: