Skip to content

Commit

Permalink
Task proc in nimscript module will now export the proc it creates.
Browse files Browse the repository at this point in the history
  • Loading branch information
dom96 committed Dec 24, 2015
1 parent ebd14bd commit a01eb09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/system/nimscript.nim
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ template task*(name: untyped; description: string; body: untyped): untyped =
## .. code-block:: nim
## task build, "default build is via the C backend":
## setCommand "c"
proc `name Task`() = body
proc `name Task`*() = body

let cmd = getCommand()
if cmd.len == 0 or cmd ==? "help":
Expand Down

0 comments on commit a01eb09

Please sign in to comment.