diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-09-05 18:05:55 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-09-05 18:05:55 +0200 |
commit | 92863c0e75d32bffb0d7af15310e04cca7da9d3a (patch) | |
tree | b51b23ab97fa9c87f59089fbee6e12b9b966caf6 | |
parent | 49708d9c2564762904e2405135926afe55a48009 (diff) | |
download | Nim-92863c0e75d32bffb0d7af15310e04cca7da9d3a.tar.gz |
system.nim: fix doc comment for 'once'
-rw-r--r-- | lib/system.nim | 12 |
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: |