mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
docs(traverse): correct code comment 2 (#5607)
Numbering UIDs skips 1 i.e. `_foo`, `_foo2`, `_foo3`, etc. Correct comment to reflect this.
This commit is contained in:
parent
2e24a15075
commit
1c051ae9ae
1 changed files with 1 additions and 1 deletions
|
|
@ -453,7 +453,7 @@ impl TraverseScoping {
|
||||||
// `CompactStr`, rather than generating a new string on each attempt.
|
// `CompactStr`, rather than generating a new string on each attempt.
|
||||||
// Postfixes greater than 99 should be very uncommon, so don't bother optimizing.
|
// Postfixes greater than 99 should be very uncommon, so don't bother optimizing.
|
||||||
|
|
||||||
// Try single-digit postfixes (i.e. `_temp1`, `_temp2` ... `_temp9`)
|
// Try single-digit postfixes (i.e. `_temp2`, `_temp3` ... `_temp9`)
|
||||||
name.push('2');
|
name.push('2');
|
||||||
if self.name_is_unique(&name) {
|
if self.name_is_unique(&name) {
|
||||||
return name;
|
return name;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue