summaryrefslogtreecommitdiff
path: root/src/eval/capture.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-02-11 21:22:06 +0100
committerLaurenz <laurmaedje@gmail.com>2021-02-11 22:24:42 +0100
commita2fcc1bf288c5162de7b2158166de62cb0610083 (patch)
treec9d825abf6909168a9b2e7e98987a3e95202ff92 /src/eval/capture.rs
parent146eda102a5d0241c96a808a847f3b855340765e (diff)
Small fixes ♻
Diffstat (limited to 'src/eval/capture.rs')
-rw-r--r--src/eval/capture.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eval/capture.rs b/src/eval/capture.rs
index bbabc503..163aa24e 100644
--- a/src/eval/capture.rs
+++ b/src/eval/capture.rs
@@ -16,12 +16,12 @@ impl<'a> CapturesVisitor<'a> {
pub fn new(external: &'a Scopes) -> Self {
Self {
external,
- internal: Scopes::default(),
+ internal: Scopes::new(),
captures: Scope::new(),
}
}
- /// Return the scope of capture variables.
+ /// Return the scope of captured variables.
pub fn finish(self) -> Scope {
self.captures
}