Skip to content

Commit 2009308

Browse files
Update CHANGELOG.md (tabs to spaces) (#35848)
Fixes the indentation of some example code.
1 parent a857a90 commit 2009308

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

CHANGELOG.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,20 @@ CHANGELOG
2727

2828
Swift Next
2929
----------
30+
3031
* [SE-0296][]:
3132

32-
Asynchronous programming is now natively supported using async/await. Asynchronous functions can be defined using `async`:
33+
Asynchronous programming is now natively supported using async/await. Asynchronous functions can be defined using `async`:
3334

34-
```swift
35-
func loadWebResource(_ path: String) async throws -> Resource { ... }
35+
```swift
36+
func loadWebResource(_ path: String) async throws -> Resource { ... }
3637
func decodeImage(_ r1: Resource, _ r2: Resource) async throws -> Image
3738
func dewarpAndCleanupImage(_ i : Image) async -> Image
38-
```
39+
```
3940

40-
Calls to `async` functions may suspend, meaning that they give up the thread on which they are executing and will be scheduled to run again later. The potential for suspension on asynchronous calls requires the `await` keyword, similarly to the way in which `try` acknowledges a call to a `throws` function:
41+
Calls to `async` functions may suspend, meaning that they give up the thread on which they are executing and will be scheduled to run again later. The potential for suspension on asynchronous calls requires the `await` keyword, similarly to the way in which `try` acknowledges a call to a `throws` function:
4142

42-
```swift
43+
```swift
4344
func processImageData() async throws -> Image {
4445
let dataResource = try await loadWebResource("dataprofile.txt")
4546
let imageResource = try await loadWebResource("imagedata.dat")
@@ -60,6 +61,8 @@ Swift Next
6061
}
6162
```
6263

64+
**Add new entries to the top of this section, not here!**
65+
6366
Swift 5.4
6467
---------
6568

@@ -365,8 +368,6 @@ Swift 5.3
365368
closure's capture list in addition to the existing 'use `self.` explicitly'
366369
fix-it.
367370

368-
**Add new entries to the top of this section, not here!**
369-
370371
Swift 5.2
371372
---------
372373

@@ -1385,10 +1386,10 @@ Swift 4.1
13851386
types, such as `index(of:)`.
13861387

13871388
* [SE-0157][] is implemented. Associated types can now declare "recursive"
1388-
constraints, which require that the associated type conform to the enclosing
1389-
protocol. The standard library protocols have been updated to make use of
1390-
recursive constraints. For example, the `SubSequence` associated type of
1391-
`Sequence` follows the enclosing protocol:
1389+
constraints, which require that the associated type conform to the enclosing
1390+
protocol. The standard library protocols have been updated to make use of
1391+
recursive constraints. For example, the `SubSequence` associated type of
1392+
`Sequence` follows the enclosing protocol:
13921393

13931394
```swift
13941395
protocol Sequence {
@@ -1405,16 +1406,15 @@ Swift 4.1
14051406
```
14061407

14071408
As a result, a number of new constraints have been introduced into the
1408-
standard library protocols:
1409-
1410-
* Make the `Indices` associated type have the same traversal requirements as
1411-
its enclosing protocol, e.g., `Collection.Indices` conforms to
1412-
`Collection`, `BidirectionalCollection.Indices` conforms to
1413-
`BidirectionalCollection`, and so on
1414-
* Make `Numeric.Magnitude` conform to `Numeric`
1415-
* Use more efficient `SubSequence` types for lazy filter and map
1416-
* Eliminate the `*Indexable` protocols
1417-
1409+
standard library protocols:
1410+
1411+
* Make the `Indices` associated type have the same traversal requirements as
1412+
its enclosing protocol, e.g., `Collection.Indices` conforms to
1413+
`Collection`, `BidirectionalCollection.Indices` conforms to
1414+
`BidirectionalCollection`, and so on
1415+
* Make `Numeric.Magnitude` conform to `Numeric`
1416+
* Use more efficient `SubSequence` types for lazy filter and map
1417+
* Eliminate the `*Indexable` protocols
14181418

14191419
* [SE-0161][] is fully implemented. KeyPaths now support subscript, optional
14201420
chaining, and optional force-unwrapping components.

0 commit comments

Comments
 (0)