Skip to content

Commit f9e231e

Browse files
committed
Merge branch 'release/5.10_beta_3'
2 parents f6c1070 + 13befb2 commit f9e231e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+279
-27
lines changed

TSPL.docc/GuidedTour/AboutSwift.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ Swift continues to evolve with thoughtful new features and powerful capabilities
4545
The goals for Swift are ambitious.
4646
We can’t wait to see what you create with it.
4747

48+
> Beta Software:
49+
>
50+
> This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.
51+
>
52+
> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/).
53+
4854
<!--
4955
This source file is part of the Swift.org open source project
5056

TSPL.docc/GuidedTour/Compatibility.md

Lines changed: 16 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,15 @@
22

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

5-
This book describes Swift 5.9.2,
6-
the default version of Swift that's included in Xcode 15.1.
7-
You can use Xcode 15.1 to build targets
8-
that are written in either 5.9.2, Swift 4.2, or Swift 4.
5+
This book describes Swift 5.10,
6+
the default version of Swift that's included in Xcode 15.3.
7+
You can use Xcode 15.3 to build targets
8+
that are written in either 5.10, Swift 4.2, or Swift 4.
99

10-
<!--
11-
- test: `swift-version`
12-
13-
```swifttest
14-
>> #if swift(>=5.9.3)
15-
>> print("Too new")
16-
>> #elseif swift(>=5.9.2)
17-
>> print("Just right")
18-
>> #else
19-
>> print("Too old")
20-
>> #endif
21-
<< Just right
22-
```
23-
-->
24-
25-
When you use Xcode 15.1 to build Swift 4 and Swift 4.2 code,
26-
most Swift 5.9.2 functionality is available.
10+
When you use Xcode 15.3 to build Swift 4 and Swift 4.2 code,
11+
most Swift 5.10 functionality is available.
2712
That said,
28-
the following changes are available only to code that uses 5.9.2 or later:
13+
the following changes are available only to code that uses 5.10 or later:
2914

3015
- Functions that return an opaque type require the Swift 5.1 runtime.
3116
- The `try?` expression doesn't introduce an extra level of optionality
@@ -35,20 +20,26 @@ the following changes are available only to code that uses 5.9.2 or later:
3520
For example, `UInt64(0xffff_ffff_ffff_ffff)` evaluates to the correct value
3621
rather than overflowing.
3722

38-
Concurrency requires 5.9.2 or later,
23+
Concurrency requires 5.10 or later,
3924
and a version of the Swift standard library
4025
that provides the corresponding concurrency types.
4126
On Apple platforms, set a deployment target
4227
of at least iOS 13, macOS 10.15, tvOS 13, or watchOS 6.
4328

44-
A target written in 5.9.2 can depend on
29+
A target written in 5.10 can depend on
4530
a target that's written in Swift 4.2 or Swift 4,
4631
and vice versa.
4732
This means, if you have a large project
4833
that's divided into multiple frameworks,
49-
you can migrate your code from Swift 4 to 5.9.2
34+
you can migrate your code from Swift 4 to 5.10
5035
one framework at a time.
5136

37+
> Beta Software:
38+
>
39+
> This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.
40+
>
41+
> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/).
42+
5243
<!--
5344
This source file is part of the Swift.org open source project
5445

TSPL.docc/GuidedTour/GuidedTour.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2449,6 +2449,12 @@ anyCommonElements([1, 2, 3], [3])
24492449
Writing `<T: Equatable>`
24502450
is the same as writing `<T> ... where T: Equatable`.
24512451

2452+
> Beta Software:
2453+
>
2454+
> This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.
2455+
>
2456+
> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/).
2457+
24522458
<!--
24532459
This source file is part of the Swift.org open source project
24542460

TSPL.docc/LanguageGuide/AccessControl.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1487,6 +1487,12 @@ but a public type alias can't alias an internal, file-private, or private type.
14871487
```
14881488
-->
14891489

1490+
> Beta Software:
1491+
>
1492+
> This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.
1493+
>
1494+
> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/).
1495+
14901496
<!--
14911497
This source file is part of the Swift.org open source project
14921498

TSPL.docc/LanguageGuide/AdvancedOperators.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1561,6 +1561,12 @@ see <doc:Attributes#resultBuilder>.
15611561
TODO: generic operators
15621562
-->
15631563

1564+
> Beta Software:
1565+
>
1566+
> This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.
1567+
>
1568+
> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/).
1569+
15641570
<!--
15651571
This source file is part of the Swift.org open source project
15661572

TSPL.docc/LanguageGuide/AutomaticReferenceCounting.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1512,6 +1512,12 @@ paragraph = nil
15121512
For more information about capture lists,
15131513
see <doc:Expressions#Capture-Lists>.
15141514

1515+
> Beta Software:
1516+
>
1517+
> This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.
1518+
>
1519+
> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/).
1520+
15151521
<!--
15161522
This source file is part of the Swift.org open source project
15171523

TSPL.docc/LanguageGuide/BasicOperators.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,6 +1231,12 @@ but the overall intention is clearer to the reader.
12311231
Readability is always preferred over brevity;
12321232
use parentheses where they help to make your intentions clear.
12331233

1234+
> Beta Software:
1235+
>
1236+
> This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.
1237+
>
1238+
> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/).
1239+
12341240
<!--
12351241
This source file is part of the Swift.org open source project
12361242

TSPL.docc/LanguageGuide/ClassesAndStructures.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,12 @@ see [Manual Memory Management](https://developer.apple.com/documentation/swift/s
710710
QUESTION: what's the deal with tuples and reference types / value types?
711711
-->
712712

713+
> Beta Software:
714+
>
715+
> This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.
716+
>
717+
> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/).
718+
713719
<!--
714720
This source file is part of the Swift.org open source project
715721

TSPL.docc/LanguageGuide/Closures.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,6 +1333,12 @@ As a result,
13331333
the value of the `customerProvider` argument
13341334
must be allowed to escape the function's scope.
13351335

1336+
> Beta Software:
1337+
>
1338+
> This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.
1339+
>
1340+
> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/).
1341+
13361342
<!--
13371343
This source file is part of the Swift.org open source project
13381344

TSPL.docc/LanguageGuide/CollectionTypes.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1469,6 +1469,12 @@ Swift's `Dictionary` type doesn't have a defined ordering.
14691469
To iterate over the keys or values of a dictionary in a specific order,
14701470
use the `sorted()` method on its `keys` or `values` property.
14711471

1472+
> Beta Software:
1473+
>
1474+
> This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.
1475+
>
1476+
> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/).
1477+
14721478
<!--
14731479
This source file is part of the Swift.org open source project
14741480

0 commit comments

Comments
 (0)