Turn normal comment into doc comment

This commit is contained in:
Josh Junon 2024-03-01 12:35:41 +01:00
parent d26c92bea4
commit 94a5eb6be2

View File

@ -4,8 +4,8 @@ pub fn dedup(existing: &[&str], new: &str) -> String {
dedup_fmt(existing, new, " ")
}
// dedup makes sure that _new_ is not in _existing_ by adding a number to it.
// the number is increased until the name is unique.
/// Makes sure that _new_ is not in _existing_ by adding a number to it.
/// the number is increased until the name is unique.
pub fn dedup_fmt(existing: &[&str], new: &str, separator: &str) -> String {
let used_numbers = existing
.iter()