Skip to content

Commit 31beef1

Browse files
committed
Fix wording for Swift language mode
1 parent a0e0ebd commit 31beef1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

TSPL.docc/GuidedTour/Compatibility.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ In addition,
1818
when you use Xcode 15.3 to build Swift 4 and Swift 4.2 code,
1919
most Swift 5 functionality is still available.
2020
That said,
21-
the following changes are available only to code that uses Swift 5:
21+
the following changes are available only to code
22+
that uses the Swift 5 language mode:
2223

2324
- Functions that return an opaque type require the Swift 5.1 runtime.
2425
- The `try?` expression doesn't introduce an extra level of optionality
@@ -28,13 +29,13 @@ the following changes are available only to code that uses Swift 5:
2829
For example, `UInt64(0xffff_ffff_ffff_ffff)` evaluates to the correct value
2930
rather than overflowing.
3031

31-
Concurrency requires Swift 5
32+
Concurrency requires the Swift 5 language mode
3233
and a version of the Swift standard library
3334
that provides the corresponding concurrency types.
3435
On Apple platforms, set a deployment target
3536
of at least iOS 13, macOS 10.15, tvOS 13, or watchOS 6.
3637

37-
A target written in 6 can depend on
38+
A target written in Swift 6 can depend on
3839
a target that's written in Swift 5, Swift 4.2 or Swift 4,
3940
and vice versa.
4041
This means, if you have a large project

0 commit comments

Comments
 (0)