Skip to content

Commit 4807119

Browse files
committed
wip: escaping
1 parent dea554d commit 4807119

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

swift-6-beta.docc/ReferenceManual/Attributes.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2465,13 +2465,13 @@ Swift 提供了以下 Interface Builder 特性:
24652465

24662466
### escaping
24672467

2468-
Apply this attribute to a parameter's type in a function or method declaration
2469-
to indicate that the parameter's value can be stored for later execution.
2470-
This means that the value is allowed to outlive the lifetime of the call.
2471-
Function type parameters with the `escaping` type attribute
2472-
require explicit use of `self.` for properties or methods.
2473-
For an example of how to use the `escaping` attribute,
2474-
see <doc:Closures#Escaping-Closures>.
2468+
将此特性应用于函数或方法声明中的参数类型,
2469+
以指示参数的值可以存储以供后续执行。
2470+
这意味着该值可以超出调用的生命周期。
2471+
具有 `escaping` 类型特性的函数类型参数
2472+
需要对特性或方法显式使用 `self.`
2473+
有关如何使用 `escaping` 特性的示例,
2474+
<doc:Closures#Escaping-Closures>
24752475

24762476
### Sendable
24772477

0 commit comments

Comments
 (0)