summary refs log tree commit diff stats
path: root/lib/impure/re.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-08-11 20:38:28 +0200
committerAraq <rumpf_a@web.de>2014-08-11 20:38:28 +0200
commitdd806cafa0193acb9e79fdd47ec6810da3c48272 (patch)
treeb42f7aacdd844e9402a3308e363f71e14db8b78a /lib/impure/re.nim
parentb1c8461a3b738cb4383b2e23ba24f36960a8604c (diff)
downloadNim-dd806cafa0193acb9e79fdd47ec6810da3c48272.tar.gz
distinguish between 'defined' and 'declared'
Diffstat (limited to 'lib/impure/re.nim')
-rw-r--r--lib/impure/re.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/impure/re.nim b/lib/impure/re.nim
index f6511dab4..ac07b2d6b 100644
--- a/lib/impure/re.nim
+++ b/lib/impure/re.nim
@@ -243,7 +243,7 @@ template `=~` *(s: string, pattern: TRegex): expr =
   ##     echo("syntax error")
   ##
   bind maxSubPatterns
-  when not definedInScope(matches):
+  when not declaredInScope(matches):
     var matches {.inject.}: array[0..MaxSubpatterns-1, string]
   match(s, pattern, matches)