summaryrefslogtreecommitdiff
path: root/src/eval/capture.rs
diff options
context:
space:
mode:
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
}