From 805fed68133768bcd1c0de5de3b74e0349f120c8 Mon Sep 17 00:00:00 2001 From: SpatialOnee Date: Wed, 27 Nov 2024 20:11:30 +0800 Subject: [PATCH] update swift 6 prod, remove beta --- ...es_intro_2x.png => CollectionTypes_intro@2x.png} | Bin TSPL.docc/GuidedTour/AboutSwift.md | 6 ------ TSPL.docc/GuidedTour/Compatibility.md | 6 ------ TSPL.docc/GuidedTour/GuidedTour.md | 6 ------ TSPL.docc/LanguageGuide/AccessControl.md | 6 ------ TSPL.docc/LanguageGuide/AdvancedOperators.md | 6 ------ .../LanguageGuide/AutomaticReferenceCounting.md | 6 ------ TSPL.docc/LanguageGuide/BasicOperators.md | 6 ------ TSPL.docc/LanguageGuide/ClassesAndStructures.md | 6 ------ TSPL.docc/LanguageGuide/Closures.md | 6 ------ TSPL.docc/LanguageGuide/CollectionTypes.md | 6 ------ TSPL.docc/LanguageGuide/ControlFlow.md | 6 ------ TSPL.docc/LanguageGuide/Deinitialization.md | 6 ------ TSPL.docc/LanguageGuide/Enumerations.md | 6 ------ TSPL.docc/LanguageGuide/ErrorHandling.md | 6 ------ TSPL.docc/LanguageGuide/Extensions.md | 6 ------ TSPL.docc/LanguageGuide/Functions.md | 6 ------ TSPL.docc/LanguageGuide/Generics.md | 6 ------ TSPL.docc/LanguageGuide/Inheritance.md | 6 ------ TSPL.docc/LanguageGuide/Initialization.md | 6 ------ TSPL.docc/LanguageGuide/Macros.md | 6 ------ TSPL.docc/LanguageGuide/Methods.md | 6 ------ TSPL.docc/LanguageGuide/NestedTypes.md | 6 ------ TSPL.docc/LanguageGuide/OpaqueTypes.md | 6 ------ TSPL.docc/LanguageGuide/OptionalChaining.md | 6 ------ TSPL.docc/LanguageGuide/Properties.md | 6 ------ TSPL.docc/LanguageGuide/Protocols.md | 6 ------ TSPL.docc/LanguageGuide/StringsAndCharacters.md | 6 ------ TSPL.docc/LanguageGuide/Subscripts.md | 6 ------ TSPL.docc/LanguageGuide/TheBasics.md | 6 ------ TSPL.docc/LanguageGuide/TypeCasting.md | 6 ------ .../ReferenceManual/AboutTheLanguageReference.md | 6 ------ TSPL.docc/ReferenceManual/Expressions.md | 2 +- .../GenericParametersAndArguments.md | 6 ------ TSPL.docc/ReferenceManual/Patterns.md | 6 ------ TSPL.docc/ReferenceManual/Statements.md | 6 ------ swift-6-beta.docc/GuidedTour/AboutSwift.md | 8 +------- swift-6-beta.docc/GuidedTour/Compatibility.md | 6 ------ swift-6-beta.docc/GuidedTour/GuidedTour.md | 6 ------ swift-6-beta.docc/LanguageGuide/AccessControl.md | 6 ------ .../LanguageGuide/AdvancedOperators.md | 8 +------- .../LanguageGuide/AutomaticReferenceCounting.md | 8 +------- swift-6-beta.docc/LanguageGuide/BasicOperators.md | 9 +-------- .../LanguageGuide/ClassesAndStructures.md | 9 +-------- swift-6-beta.docc/LanguageGuide/Closures.md | 6 ------ swift-6-beta.docc/LanguageGuide/CollectionTypes.md | 6 ------ swift-6-beta.docc/LanguageGuide/Concurrency.md | 6 ------ swift-6-beta.docc/LanguageGuide/ControlFlow.md | 6 ------ swift-6-beta.docc/LanguageGuide/Deinitialization.md | 6 ------ swift-6-beta.docc/LanguageGuide/Enumerations.md | 6 ------ swift-6-beta.docc/LanguageGuide/ErrorHandling.md | 7 ------- swift-6-beta.docc/LanguageGuide/Extensions.md | 8 +------- swift-6-beta.docc/LanguageGuide/Functions.md | 7 ------- swift-6-beta.docc/LanguageGuide/Generics.md | 6 ------ swift-6-beta.docc/LanguageGuide/Inheritance.md | 9 +-------- swift-6-beta.docc/LanguageGuide/Initialization.md | 6 ------ swift-6-beta.docc/LanguageGuide/Macros.md | 6 ------ swift-6-beta.docc/LanguageGuide/MemorySafety.md | 6 ------ swift-6-beta.docc/LanguageGuide/Methods.md | 6 ------ swift-6-beta.docc/LanguageGuide/NestedTypes.md | 5 ----- swift-6-beta.docc/LanguageGuide/OpaqueTypes.md | 6 ------ swift-6-beta.docc/LanguageGuide/Properties.md | 6 ------ swift-6-beta.docc/LanguageGuide/Protocols.md | 5 ----- .../LanguageGuide/StringsAndCharacters.md | 6 ------ swift-6-beta.docc/LanguageGuide/Subscripts.md | 4 ---- swift-6-beta.docc/LanguageGuide/TheBasics.md | 6 ------ swift-6-beta.docc/LanguageGuide/TypeCasting.md | 6 ------ .../ReferenceManual/AboutTheLanguageReference.md | 9 --------- swift-6-beta.docc/ReferenceManual/Attributes.md | 6 ------ swift-6-beta.docc/ReferenceManual/Declarations.md | 6 ------ swift-6-beta.docc/ReferenceManual/Expressions.md | 7 ------- .../GenericParametersAndArguments.md | 6 ------ .../ReferenceManual/LexicalStructure.md | 6 ------ swift-6-beta.docc/ReferenceManual/Patterns.md | 7 ------- swift-6-beta.docc/ReferenceManual/Statements.md | 6 ------ .../ReferenceManual/SummaryOfTheGrammar.md | 7 ------- swift-6-beta.docc/ReferenceManual/Types.md | 4 ---- 77 files changed, 8 insertions(+), 463 deletions(-) rename TSPL.docc/Assets/{CollectionTypes_intro_2x.png => CollectionTypes_intro@2x.png} (100%) diff --git a/TSPL.docc/Assets/CollectionTypes_intro_2x.png b/TSPL.docc/Assets/CollectionTypes_intro@2x.png similarity index 100% rename from TSPL.docc/Assets/CollectionTypes_intro_2x.png rename to TSPL.docc/Assets/CollectionTypes_intro@2x.png diff --git a/TSPL.docc/GuidedTour/AboutSwift.md b/TSPL.docc/GuidedTour/AboutSwift.md index 42454815..ab4c7ac0 100644 --- a/TSPL.docc/GuidedTour/AboutSwift.md +++ b/TSPL.docc/GuidedTour/AboutSwift.md @@ -45,12 +45,6 @@ Swift continues to evolve with thoughtful new features and powerful capabilities The goals for Swift are ambitious. We can’t wait to see what you create with it. -> Beta Software: -> -> 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. -> -> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/). - -> Beta Software: -> -> 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. -> -> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/). - -> Beta Software: -> -> 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. -> -> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/). - -> Beta Software: -> -> 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. -> -> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/). - -> Beta Software: -> -> 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. -> -> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/). - -> Beta Software: -> -> 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. -> -> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/). - -> Beta Software: -> -> 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. -> -> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/). - -> Beta Software: -> -> 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. -> -> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/). - -> Beta Software: -> -> 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. -> -> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/). - -> Beta Software: -> -> 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. -> -> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/). - -> Beta Software: -> -> 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. -> -> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/). - -> Beta Software: -> -> 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. -> -> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/). - -> Beta Software: -> -> 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. -> -> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/). - -> Beta Software: -> -> 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. -> -> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/). - -> Beta Software: -> -> 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. -> -> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/). - -> Beta Software: -> -> 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. -> -> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/). - -> Beta Software: -> -> 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. -> -> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/). - -> Beta Software: -> -> 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. -> -> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/). - -> Beta Software: -> -> 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. -> -> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/). - -> Beta Software: -> -> 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. -> -> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/). - \ No newline at end of file +--> diff --git a/swift-6-beta.docc/GuidedTour/Compatibility.md b/swift-6-beta.docc/GuidedTour/Compatibility.md index 5a19029d..18330285 100644 --- a/swift-6-beta.docc/GuidedTour/Compatibility.md +++ b/swift-6-beta.docc/GuidedTour/Compatibility.md @@ -16,12 +16,6 @@ 用 Swift 6 编写的项目可以依赖 Swift 5、Swift 4.2 或 Swift 4 编写的项目,反之亦然。这意味着,如果你有一个大型项目,并将其分为多个框架,你可以逐个框架地将代码迁移到新版本。 -> Beta 版软件: -> -> 本文档包含关于正在开发的 API 或技术的初步信息。这些信息可能会发生变化,并且根据本文档实现的软件应与最终的操作系统软件一起进行测试。 -> -> 点击了解更多关于使用 [Apple Beta 版本软件](https://developer.apple.com/support/beta-software/) 的信息。 - -> Beta Software: -> -> 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. -> -> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/). - -> Beta 软件: -> -> 本文档包含有关正在开发中的 API 或技术的初步信息。此信息可能会发生变化,根据本文档实现的软件应该用最终的操作系统软件进行测试。 -> -> 了解更多关于使用 [Apple 的 beta 软件](https://developer.apple.com/support/beta-software/)的信息。 - \ No newline at end of file +--> diff --git a/swift-6-beta.docc/LanguageGuide/AutomaticReferenceCounting.md b/swift-6-beta.docc/LanguageGuide/AutomaticReferenceCounting.md index 72170201..79dcbe26 100644 --- a/swift-6-beta.docc/LanguageGuide/AutomaticReferenceCounting.md +++ b/swift-6-beta.docc/LanguageGuide/AutomaticReferenceCounting.md @@ -1120,16 +1120,10 @@ paragraph = nil 关于捕获列表的更多信息,请参见。 -> 测试软件: -> -> 本文档包含有关正在开发的 API 或技术的初步信息。此信息可能会发生变化,根据此文档实现的软件应该使用最终的操作系统软件进行测试。 -> -> 了解更多关于使用[Apple 的测试软件](https://developer.apple.com/support/beta-software/)的信息。 - \ No newline at end of file +--> diff --git a/swift-6-beta.docc/LanguageGuide/BasicOperators.md b/swift-6-beta.docc/LanguageGuide/BasicOperators.md index fc2e3547..672835e1 100644 --- a/swift-6-beta.docc/LanguageGuide/BasicOperators.md +++ b/swift-6-beta.docc/LanguageGuide/BasicOperators.md @@ -1015,13 +1015,6 @@ if (enteredDoorCode && passedRetinaScan) || hasDoorKey || knowsOverridePassword 虽然复合表达式的输出没有改变,但整体意图对读者来说更加清晰明了。 可读性永远比简洁性更重要,因此在有助于阐明意图的地方使用括号是很有必要的。 -> 测试版软件: -> -> 本文档包含有关正在开发的 API 或技术的初步信息。此信息可能会发生变化,根据本文档实施的软件应使用最终操作系统软件进行测试。 -> -> 了解有关使用 [Apple 测试版软件](https://developer.apple.com/support/beta-software/) 的更多信息。 - - \ No newline at end of file +--> diff --git a/swift-6-beta.docc/LanguageGuide/ClassesAndStructures.md b/swift-6-beta.docc/LanguageGuide/ClassesAndStructures.md index 76e6356f..0370f045 100644 --- a/swift-6-beta.docc/LanguageGuide/ClassesAndStructures.md +++ b/swift-6-beta.docc/LanguageGuide/ClassesAndStructures.md @@ -644,13 +644,6 @@ Swift 标准库提供了指针和缓冲区类型, 问题: 元组与引用类型/值类型之间的关系是 --> -> 测试版软件: -> -> 本文档包含有关正在开发的 API 或技术的初步信息。此信息可能会发生变化,根据本文档实施的软件应使用最终操作系统软件进行测试。 -> -> 了解有关使用 [Apple 测试版软件](https://developer.apple.com/support/beta-software/) 的更多信息. - - \ No newline at end of file +--> diff --git a/swift-6-beta.docc/LanguageGuide/Closures.md b/swift-6-beta.docc/LanguageGuide/Closures.md index 6cb3a545..3f2985e0 100644 --- a/swift-6-beta.docc/LanguageGuide/Closures.md +++ b/swift-6-beta.docc/LanguageGuide/Closures.md @@ -991,12 +991,6 @@ for customerProvider in customerProviders { 在上面的代码中,`collectCustomerProviders(_:)` 函数将闭包追加到 `customerProviders` 数组中,而不是调用作为其 `customerProvider` 参数传递给它的闭包。数组是在函数的作用域之外声明的,这意味着数组中的闭包可以在函数返回后执行。因此 `customerProvider` 参数必须允许逃逸出函数的作用域。 -> 测试版软件: -> -> 本文档包含有关正在开发的 API 或技术的初步信息。此信息可能会发生变化,根据本文档实施的软件应使用最终操作系统软件进行测试。 -> -> 了解有关使用 [Apple 测试版软件](https://developer.apple.com/support/beta-software/) 的更多信息. - -> Beta Software: -> -> 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. -> -> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/). - -> 测试版软件: -> -> 本文档包含有关正在开发的 API 或技术的初步信息。此信息可能会发生变化,根据本文档开发的软件应与最终版本的操作系统一起进行测试。 -> -> 进一步了解如何使用 [Apple 的 Beta 版软件](https://developer.apple.com/support/beta-software/). - \ No newline at end of file +--> diff --git a/swift-6-beta.docc/LanguageGuide/Functions.md b/swift-6-beta.docc/LanguageGuide/Functions.md index 30f52912..4cff7ce0 100644 --- a/swift-6-beta.docc/LanguageGuide/Functions.md +++ b/swift-6-beta.docc/LanguageGuide/Functions.md @@ -1043,13 +1043,6 @@ print("zero!") ``` --> -> 注意: -> 测试版软件 -> -> 本文档包含有关正在开发的 API 或技术的初步信息。这些信息可能会发生变化,根据本文档开发实现的软件应与最终的操作系统软件一起进行测试。 -> -> 点击了解更多关于使用 [Apple 测试版软件](https://developer.apple.com/support/beta-software/) 的信息。 - -> Beta Software: -> -> 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. -> -> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/). - -> 测试版软件: -> -> 本文档包含有关正在开发的 API 或技术的初步信息。此信息可能会发生变化,根据本文档实施的软件应使用最终操作系统软件进行测试。 -> -> 了解有关使用 [Apple 测试版软件](https://developer.apple.com/support/beta-software/) 的更多信息. - - \ No newline at end of file +--> diff --git a/swift-6-beta.docc/LanguageGuide/Initialization.md b/swift-6-beta.docc/LanguageGuide/Initialization.md index 615d8b8a..d10ffd77 100644 --- a/swift-6-beta.docc/LanguageGuide/Initialization.md +++ b/swift-6-beta.docc/LanguageGuide/Initialization.md @@ -2388,12 +2388,6 @@ print(board.squareIsBlackAt(row: 7, column: 7)) ``` --> -> 测试版软件: -> -> 本文档包含关于开发中 API 或技术的初步信息。此信息可能会发生变化,依据本文档实现的软件应与最终操作系统软件一起进行测试。 -> -> 了解更多使用方法 [Apple's beta software](https://developer.apple.com/support/beta-software/). - -> 测试版软件: -> -> 本文档包含有关正在开发的 API 或技术的初步信息。这些信息可能会发生变化,根据本文档实施的软件应与最终的操作系统软件一起进行测试。 -> -> 了解更多有关使用 [Apple's beta software](https://developer.apple.com/support/beta-software/) 的信息。 - -> Beta Software: -> -> 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. -> -> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/). - -> Beta Software: -> -> 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. -> -> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/). - -> 测试版软件: -> -> 本文档包含有关正在开发的 API 或技术的初步信息。这些信息可能会发生变化,根据本文档实施的软件应与最终的操作系统软件一起进行测试。 -> -> 了解更多有关使用 [Apple's beta software](https://developer.apple.com/support/beta-software/) 的信息。 - -> 测试版软件: -> -> 本文档包含关于开发中 API 或技术的初步信息。此信息可能会发生变化,并且根据本文档实施的软件应与最终的操作系统软件一起进行测试。 -> -> 了解更多关于[Apple 测试版软件](https://developer.apple.com/support/beta-software/)的使用。 - -> 测试版软件: -> -> 本文档包含有关正在开发的 API 或技术的初步信息。此信息可能会发生变化,根据本文档实施的软件应使用最终操作系统软件进行测试。 -> -> 了解有关使用 [Apple 测试版软件](https://developer.apple.com/support/beta-software/) 的更多信息. -> 测试版软件: -> -> 本文档包含有关正在开发的 API 或技术的初步信息。这些信息可能会发生变化,根据本文档制作的软件应使用最终的操作系统软件进行测试。 -> -> 点击了解更多关于使用 [Apple's beta software](https://developer.apple.com/support/beta-software/)的信息. - ->测试版软件: ->本文档包含有关正在开发的 API 或技术的初步信息。此信息可能会发生变化,根据本文档实施的软件应使用最终操作系统软件进行测试。 ->了解有关使用 [Apple 测试版软件](https://developer.apple.com/support/beta-software/)的更多信息. - -> 测试版软件: -> -> 本文档包含有关正在开发的 API 或技术的初步信息。这些信息可能会发生变化,根据本文档制作的软件应使用最终的操作系统软件进行测试。 -> -> 了解有关使用 [Apple 测试版软件](https://developer.apple.com/support/beta-software/)的更多信息。 - -> 测试版软件: -> -> 本文档包含有关正在开发的 API 或技术的初步信息。此信息可能会发生变化,根据本文档实施的软件应使用最终操作系统软件进行测试。 -> -> 了解有关使用 [Apple 测试版软件](https://developer.apple.com/support/beta-software/) 的更多信息。 - -> Beta Software: -> -> 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. -> -> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/). - -> Beta 版软件: -> > 本文档包含有关正在开发中的 API 或技术的初步信息。此信息可能会发生变化,并且根据本文档实施的软件应该与最终的操作系统软件一起进行测试。 -> > 了解更多关于使用 [Apple 的 Beta 软件](https://developer.apple.com/support/beta-software/)的信息。 -