This commit is contained in:
John Smith
2023-03-13 16:43:07 -04:00
parent 3c7c49684c
commit 894acc18e3
2 changed files with 4 additions and 3 deletions

View File

@@ -195,9 +195,10 @@ where
write!(f, "[")?;
let mut first = true;
for x in &self.items {
if !first {
write!(f, ",")?;
if first {
first = false;
} else {
write!(f, ",")?;
}
write!(f, "{}", x)?;
}