diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-09-05 18:05:55 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-09-07 19:21:15 +0200 |
commit | b5730ec01f02e542eb06161430aa5a7c2ede775f (patch) | |
tree | 9e898798344e77609d295f88dce4935e932563fc /lib/system.nim | |
parent | 7f55bfc7d563bc91d6b38f6d90835cddd699d9e5 (diff) | |
download | Nim-b5730ec01f02e542eb06161430aa5a7c2ede775f.tar.gz |
system.nim: fix doc comment for 'once'
Diffstat (limited to 'lib/system.nim')
-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 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: |