mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-23 17:43:47 +03:00
Merge pull request #2963 from gitbutlerapp/Virtual-branch-4
Turn normal comment into doc comment
This commit is contained in:
commit
612645cfd1
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user