Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanBrouwer committed Apr 8, 2024
1 parent 136ea72 commit 5ff6de3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ fn sanitize_ident(input: &str) -> Ident {
}
}

/// Given a starting name and a map `name -> how often the name appeared`, generate a new name that is unique in the `taken_names` set
/// Given a starting name and a set of taken names, generate a new name that is unique in the `taken_names` set
fn generate_name(starting_name: Ident, taken_names: &mut HashSet<Ident>) -> Ident {
if taken_names.insert(starting_name.clone()) {
return starting_name;
Expand Down

0 comments on commit 5ff6de3

Please sign in to comment.