From 2e24a15075b513b70a6626d658fc06d1307bfbfa Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Sun, 8 Sep 2024 09:03:01 +0000 Subject: [PATCH] docs(traverse): correct code comment (#5604) `name_is_unique` originally searched through references, but it doesn't any more, so this comment is outdated. --- crates/oxc_traverse/src/context/scoping.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/oxc_traverse/src/context/scoping.rs b/crates/oxc_traverse/src/context/scoping.rs index 199f0f2730a9e..1cdc705d82c29 100644 --- a/crates/oxc_traverse/src/context/scoping.rs +++ b/crates/oxc_traverse/src/context/scoping.rs @@ -178,8 +178,7 @@ impl TraverseScoping { /// /// This function is fairly expensive, because it aims to replicate Babel's output. /// `name_is_unique` method below searches through every single binding in the entire program - /// and does a string comparison on each. It also searches through every reference in entire program - /// (though it will avoid string comparison on most of them). + /// and does a string comparison on each. /// If the first name tried is already in use, it will repeat that entire search with a new name, /// potentially multiple times. ///