Skip to content

Commit 07c5509

Browse files
authored
Merge pull request #710 from ozumin/patch-1
Fix comment for multiElementCollectionTrailingCommas
2 parents 5545cf6 + 8c4a487 commit 07c5509

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/SwiftFormat/API/Configuration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public struct Configuration: Codable, Equatable {
167167
///
168168
/// When `true` (default), the correct form is:
169169
/// ```swift
170-
/// let MyCollection = [1, 2,]
170+
/// let MyCollection = [1, 2]
171171
/// ...
172172
/// let MyCollection = [
173173
/// "a": 1,

Tests/SwiftFormatTests/PrettyPrint/CommaTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ final class CommaTests: PrettyPrintTestCase {
105105
assertPrettyPrintEqual(input: input, expected: expected, linelength: 20, configuration: configuration)
106106
}
107107

108-
func testArraySingleLineCommasPresentDisabled() {
108+
func testArraySingleLineCommasPresentEnabled() {
109109
let input =
110110
"""
111111
let MyCollection = [1, 2, 3,]
@@ -124,7 +124,7 @@ final class CommaTests: PrettyPrintTestCase {
124124
assertPrettyPrintEqual(input: input, expected: expected, linelength: 40, configuration: configuration)
125125
}
126126

127-
func testArraySingleLineCommasPresentEnabled() {
127+
func testArraySingleLineCommasPresentDisabled() {
128128
let input =
129129
"""
130130
let MyCollection = [1, 2, 3,]

0 commit comments

Comments
 (0)