fix(semantic): correct comment (#4410)

Correct a code comment.
This commit is contained in:
overlookmotel 2024-07-22 12:14:33 +00:00
parent 0deb027e6b
commit bc8d4e5876

View file

@ -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());
}