Use declaredInScope instead of definedInScope

This commit is contained in:
def
2015-02-18 01:57:10 +01:00
parent 2647423502
commit 456aa7fdfe

View File

@@ -14,7 +14,7 @@ template optRe{re(x)}(x: string{lit}): Regex =
g
template `=~`(s: string, pattern: Regex): bool =
when not definedInScope(matches):
when not declaredInScope(matches):
var matches {.inject.}: array[maxSubPatterns, string]
match(s, pattern, matches)