mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 12:33:33 +00:00
fix comma list
This commit is contained in:
parent
e6ab53619b
commit
6effddb18c
1 changed files with 1 additions and 1 deletions
|
@ -110,9 +110,9 @@ fn comma_list(buf: &mut String, bra: &str, ket: &str, items: impl Iterator<Item=
|
|||
let mut first = true;
|
||||
for item in items {
|
||||
if !first {
|
||||
first = false;
|
||||
buf.push_str(", ");
|
||||
}
|
||||
first = false;
|
||||
write!(buf, "{}", item).unwrap();
|
||||
}
|
||||
buf.push_str(ket);
|
||||
|
|
Loading…
Reference in a new issue