diff options
author | def <dennis@felsin9.de> | 2015-02-18 01:57:10 +0100 |
---|---|---|
committer | def <dennis@felsin9.de> | 2015-02-18 01:57:10 +0100 |
commit | 456aa7fdfe3d7e1458a41b41f00ceb06521d4fd3 (patch) | |
tree | 4fc039461d02d6d428b319602796e8dc2e77b547 | |
parent | 26474235021e82e64f41b299dc3acb81126909fa (diff) | |
download | Nim-456aa7fdfe3d7e1458a41b41f00ceb06521d4fd3.tar.gz |
Use declaredInScope instead of definedInScope
-rw-r--r-- | examples/talk/hoisting.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/talk/hoisting.nim b/examples/talk/hoisting.nim index df13ba2cb..54e00884f 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) |