summary refs log tree commit diff stats
path: root/compiler/patterns.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-09-10 19:34:16 +0200
committerAraq <rumpf_a@web.de>2012-09-10 19:34:16 +0200
commit92b449562e4815b69b07e74a4f37ff38e27c6a3d (patch)
tree1d8791285b2fd9a7e5c416bdf8d5f0e798f90510 /compiler/patterns.nim
parent6d94e4590244fe6174181ca4d0928a06d5c6a257 (diff)
downloadNim-92b449562e4815b69b07e74a4f37ff38e27c6a3d.tar.gz
tr macros now documented
Diffstat (limited to 'compiler/patterns.nim')
-rw-r--r--compiler/patterns.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/patterns.nim b/compiler/patterns.nim
index d8c7e26d9..af259c916 100644
--- a/compiler/patterns.nim
+++ b/compiler/patterns.nim
@@ -146,7 +146,7 @@ proc matches(c: PPatternContext, p, n: PNode): bool =
     case opr
     of "|": result = matchChoice(c, p, n)
     of "*": result = matchNested(c, p, n, rpn=false)
-    of "*|": result = matchNested(c, p, n, rpn=true)
+    of "**": result = matchNested(c, p, n, rpn=true)
     of "~": result = not matches(c, p.sons[1], n)
     else: InternalError(p.info, "invalid pattern")
     # template {add(a, `&` * b)}(a: string{noalias}, b: varargs[string]) =