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:
overlookmotel 2024-09-08 09:36:03 +00:00
parent 2e24a15075
commit 1c051ae9ae

View file

@ -453,7 +453,7 @@ impl TraverseScoping {
// `CompactStr`, rather than generating a new string on each attempt.
// 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');
if self.name_is_unique(&name) {
return name;