You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32-21Lines changed: 32 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -2118,7 +2118,7 @@ _You can enable the following settings in Xcode by running [this script](resourc
2118
2118
2119
2119
</details>
2120
2120
2121
-
*<a id='long-function-invocation'></a>(<a href='#long-function-invocation'>link</a>) **[Long](https://github.com/airbnb/swift#column-width) function invocations should also break on each argument.** Put the closing parenthesis on the last line of the invocation. [](https://github.com/nicklockwood/SwiftFormat/blob/main/Rules.md#wrapArguments)
2121
+
*<a id='long-function-invocation'></a>(<a href='#long-function-invocation'>link</a>) **[Long](https://github.com/airbnb/swift#column-width) function calls should also break on each argument.** Put the closing parenthesis on its own line. [](https://github.com/nicklockwood/SwiftFormat/blob/main/Rules.md#wrapArguments)
2122
2122
2123
2123
<details>
2124
2124
@@ -2137,8 +2137,7 @@ _You can enable the following settings in Xcode by running [this script](resourc
2137
2137
at: location,
2138
2138
count: 5,
2139
2139
color: starColor,
2140
-
withAverageDistance: 4
2141
-
)
2140
+
withAverageDistance: 4)
2142
2141
2143
2142
// WRONG
2144
2143
universe.generate(5,
@@ -2150,13 +2149,15 @@ _You can enable the following settings in Xcode by running [this script](resourc
2150
2149
at: location,
2151
2150
count: 5,
2152
2151
color: starColor,
2153
-
withAverageDistance: 4)
2152
+
withAverageDistance: 4
2153
+
)
2154
2154
2155
2155
// RIGHT
2156
2156
universe.generate(
2157
2157
5,
2158
2158
.stars,
2159
-
at: location)
2159
+
at: location
2160
+
)
2160
2161
```
2161
2162
2162
2163
</details>
@@ -2193,7 +2194,8 @@ _You can enable the following settings in Xcode by running [this script](resourc
2193
2194
universe.generateStars(
2194
2195
at: location,
2195
2196
count: count,
2196
-
withAverageDistance: averageDistance)
2197
+
withAverageDistance: averageDistance
2198
+
)
2197
2199
}
2198
2200
```
2199
2201
@@ -2222,7 +2224,8 @@ _You can enable the following settings in Xcode by running [this script](resourc
2222
2224
universe.generateStars(
2223
2225
at: location,
2224
2226
count: count,
2225
-
withAverageDistance: averageDistance)
2227
+
withAverageDistance: averageDistance
2228
+
)
2226
2229
}
2227
2230
```
2228
2231
@@ -2427,16 +2430,18 @@ _You can enable the following settings in Xcode by running [this script](resourc
2427
2430
2428
2431
funccolonizePlanet() {
2429
2432
spaceship.travel(to: planet, onArrival: { [weakself] in
2430
-
guardletselfelse { return }
2431
-
planet.colonize()
2432
-
})
2433
+
guardletselfelse { return }
2434
+
planet.colonize()
2435
+
}
2436
+
)
2433
2437
}
2434
2438
2435
2439
funcexploreSystem() {
2436
2440
spaceship.travel(to: planet, nextDestination: { [weakself] in
2437
-
guardletselfelse { returnnil }
2438
-
return planet.moons?.first
2439
-
})
2441
+
guardletselfelse { returnnil }
2442
+
return planet.moons?.first
2443
+
}
2444
+
)
2440
2445
}
2441
2446
}
2442
2447
```
@@ -2451,14 +2456,16 @@ _You can enable the following settings in Xcode by running [this script](resourc
2451
2456
2452
2457
funccolonizePlanet() {
2453
2458
spaceship.travel(to: planet, onArrival: { [planet] in
2454
-
planet.colonize()
2455
-
})
2459
+
planet.colonize()
2460
+
}
2461
+
)
2456
2462
}
2457
2463
2458
2464
funcexploreSystem() {
2459
2465
spaceship.travel(to: planet, nextDestination: { [planet] in
2460
-
planet.moons?.first
2461
-
})
2466
+
planet.moons?.first
2467
+
}
2468
+
)
2462
2469
}
2463
2470
}
2464
2471
```
@@ -3237,14 +3244,16 @@ _You can enable the following settings in Xcode by running [this script](resourc
0 commit comments