summary refs log tree commit diff stats
path: root/lib/core
diff options
context:
space:
mode:
authorBillingsly Wetherfordshire <phowl.mouth@gmail.com>2013-12-20 14:23:13 -0600
committerBillingsly Wetherfordshire <phowl.mouth@gmail.com>2013-12-20 14:23:13 -0600
commitf06c9a77b50ab4abfe57d9d9e679817acbea128b (patch)
treec32bdb8e8ca6b3cb56d9437cea323582d45a0b28 /lib/core
parent259d205ff6c44e086371f2a7b28a9345257d094e (diff)
downloadNim-f06c9a77b50ab4abfe57d9d9e679817acbea128b.tar.gz
Update macros.nim
Diffstat (limited to 'lib/core')
-rw-r--r--lib/core/macros.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/core/macros.nim b/lib/core/macros.nim
index d01d4ebee..d28826071 100644
--- a/lib/core/macros.nim
+++ b/lib/core/macros.nim
@@ -497,11 +497,11 @@ from strutils import cmpIgnoreStyle, format
 proc expectKind*(n: PNimrodNode; k: set[TNimrodNodeKind]) {.compileTime.} =
   assert n.kind in k, "Expected one of $1, got $2".format(k, n.kind)
 
-proc newProc*(name = newEmptyNode(); params: openarray[PNimrodNode] = [];  
+proc newProc*(name = newEmptyNode(); params: openarray[PNimrodNode] = [newEmptyNode()];  
     body: PNimrodNode = newStmtList(), procType = nnkProcDef): PNimrodNode {.compileTime.} =
   ## shortcut for creating a new proc
   ##
-  ## The ``params`` array should start with the return type of the proc, 
+  ## The ``params`` array must start with the return type of the proc, 
   ## followed by a list of IdentDefs which specify the params.
   assert procType in RoutineNodes
   result = newNimNode(procType).add(