Skip to content

Conversation

ozumin
Copy link
Contributor

@ozumin ozumin commented Mar 26, 2024

According to the test case below, I thought

let MyCollection = [1, 2,]

would always be

let MyCollection = [1, 2]

regardless of multiElementCollectionTrailingCommas configuration.
https://github.com/apple/swift-format/blob/5545cf668ad61840162a51de97e4bc16ad666844/Tests/SwiftFormatTests/PrettyPrint/CommaTests.swift#L108-L144

Please close this PR if I misunderstood the issue 🙏

Copy link
Member

@allevato allevato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing that oversight!

@allevato allevato merged commit 07c5509 into swiftlang:main Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants