From 456aa7fdfe3d7e1458a41b41f00ceb06521d4fd3 Mon Sep 17 00:00:00 2001 From: def Date: Wed, 18 Feb 2015 01:57:10 +0100 Subject: [PATCH] Use declaredInScope instead of definedInScope --- examples/talk/hoisting.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/talk/hoisting.nim b/examples/talk/hoisting.nim index df13ba2cb0..54e00884f9 100644 --- a/examples/talk/hoisting.nim +++ b/examples/talk/hoisting.nim @@ -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)