Skip to content

Commit 8688fdb

Browse files
committed
Update version number for Swift 5.8.
1 parent 5bf300a commit 8688fdb

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

TSPL.docc/GuidedTour/Compatibility.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22

33
Learn what functionality is available in older language modes.
44

5-
This book describes Swift 5.7,
5+
This book describes Swift 5.8,
66
the default version of Swift that's included in Xcode 14.
77
You can use Xcode 14 to build targets
8-
that are written in either Swift 5.7, Swift 4.2, or Swift 4.
8+
that are written in either Swift 5.8, Swift 4.2, or Swift 4.
99

1010
<!--
1111
- test: `swift-version`
1212
1313
```swifttest
14-
>> #if swift(>=5.7.1)
14+
>> #if swift(>=5.8.1)
1515
>> print("Too new")
16-
>> #elseif swift(>=5.7)
16+
>> #elseif swift(>=5.8)
1717
>> print("Just right")
1818
>> #else
1919
>> print("Too old")
@@ -23,9 +23,9 @@ that are written in either Swift 5.7, Swift 4.2, or Swift 4.
2323
-->
2424

2525
When you use Xcode 14 to build Swift 4 and Swift 4.2 code,
26-
most Swift 5.7 functionality is available.
26+
most Swift 5.8 functionality is available.
2727
That said,
28-
the following changes are available only to code that uses Swift 5.7 or later:
28+
the following changes are available only to code that uses Swift 5.8 or later:
2929

3030
- Functions that return an opaque type require the Swift 5.1 runtime.
3131
- The `try?` expression doesn't introduce an extra level of optionality
@@ -35,18 +35,18 @@ the following changes are available only to code that uses Swift 5.7 or later:
3535
For example, `UInt64(0xffff_ffff_ffff_ffff)` evaluates to the correct value
3636
rather than overflowing.
3737

38-
Concurrency requires Swift 5.7 or later,
38+
Concurrency requires Swift 5.8 or later,
3939
and a version of the Swift standard library
4040
that provides the corresponding concurrency types.
4141
On Apple platforms, set a deployment target
4242
of at least iOS 13, macOS 10.15, tvOS 13, or watchOS 6.
4343

44-
A target written in Swift 5.7 can depend on
44+
A target written in Swift 5.8 can depend on
4545
a target that's written in Swift 4.2 or Swift 4,
4646
and vice versa.
4747
This means, if you have a large project
4848
that's divided into multiple frameworks,
49-
you can migrate your code from Swift 4 to Swift 5.7
49+
you can migrate your code from Swift 4 to Swift 5.8
5050
one framework at a time.
5151

5252
<!--

0 commit comments

Comments
 (0)