Skip to content

Commit

Permalink
refactor(semantic): correct typo in doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Aug 20, 2024
1 parent b4407c4 commit 8e1017d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/oxc_semantic/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ impl<'a> SemanticBuilder<'a> {
}

/// Check if a symbol with the same name has already been declared in the
/// current scope. Returns the symbol id if it exists and is not excluded by `excludes`.
/// current scope. Returns the symbol ID if it exists and is not excluded by `excludes`.
///
/// Only records a redeclaration error if `report_error` is `true`.
pub(crate) fn check_redeclaration(
Expand Down Expand Up @@ -455,7 +455,7 @@ impl<'a> SemanticBuilder<'a> {
/// Try to resolve all references from the current scope that are not
/// already resolved.
///
/// This gets called every time [`SemanticBuilder`] exists a scope.
/// This gets called every time [`SemanticBuilder`] exits a scope.
fn resolve_references_for_current_scope(&mut self) {
let (current_refs, parent_refs) = self.unresolved_references.current_and_parent_mut();

Expand Down

0 comments on commit 8e1017d

Please sign in to comment.