From bc8d4e58763a5921cb28ca7cf6e18f331de14284 Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Mon, 22 Jul 2024 12:14:33 +0000 Subject: [PATCH] fix(semantic): correct comment (#4410) Correct a code comment. --- crates/oxc_semantic/src/unresolved_stack.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/oxc_semantic/src/unresolved_stack.rs b/crates/oxc_semantic/src/unresolved_stack.rs index 31a4d17cb..110f030d3 100644 --- a/crates/oxc_semantic/src/unresolved_stack.rs +++ b/crates/oxc_semantic/src/unresolved_stack.rs @@ -38,7 +38,7 @@ impl UnresolvedReferencesStack { pub(crate) fn increment_scope_depth(&mut self) { self.current_scope_depth += 1; - // Grow stack if required to ensure `self.stack[self.depth]` is in bounds + // Grow stack if required to ensure `self.stack[self.current_scope_depth]` is in bounds if self.stack.len() <= self.current_scope_depth { self.stack.push(UnresolvedReferences::default()); }