summary refs log tree commit diff stats
path: root/lib/system.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-09-05 18:05:55 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-09-05 18:05:55 +0200
commit92863c0e75d32bffb0d7af15310e04cca7da9d3a (patch)
treeb51b23ab97fa9c87f59089fbee6e12b9b966caf6 /lib/system.nim
parent49708d9c2564762904e2405135926afe55a48009 (diff)
downloadNim-92863c0e75d32bffb0d7af15310e04cca7da9d3a.tar.gz
system.nim: fix doc comment for 'once'
Diffstat (limited to 'lib/system.nim')
-rw-r--r--lib/system.nim12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 3a18a715c..f489c3a91 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: