Skip to content

Commit 0abec59

Browse files
committed
Merge branch 'main' into dewing/FormatRanges
2 parents bf226de + 07c5509 commit 0abec59

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Run `brew install swift-format` to install the latest version.
7373
Install `swift-format` using the following commands:
7474

7575
```sh
76-
VERSION=509.0.0 # replace this with the version you need
76+
VERSION=510.1.0 # replace this with the version you need
7777
git clone https://github.com/apple/swift-format.git
7878
cd swift-format
7979
git checkout "tags/$VERSION"

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)