Skip to content

Commit 81e313d

Browse files
committed
fix: blockquotes colon issue
1 parent b55647f commit 81e313d

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

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

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ Swift 插入了一层间接调用,以找到该函数的实现。
363363
而在 iOS 16 上运行时,
364364
则使用调用者中包含的 `someFunction()` 的副本。
365365

366-
> 注意
366+
> 注意:
367367
> 当调用者的最低部署目标与包含该符号的
368368
> SDK 的第一个版本相同或更高时,
369369
> 编译器可以优化掉运行时检查,
@@ -387,7 +387,7 @@ so we don't guarantee in docs that it always happens.
387387
- 声明是 `public``@usableFromInline`
388388
- 对于实例方法和类方法,该方法被标记为 `final`
389389
并且没有标记 `@objc`
390-
- 该实现满足<doc:Attributes#inlinable>中描述的对内联函数的要求。
390+
- 该实现满足 <doc:Attributes#inlinable> 中描述的对内联函数的要求。
391391

392392
### discardableResult
393393

@@ -674,7 +674,7 @@ print(wrapper.x)
674674

675675
### freestanding
676676

677-
`freestanding` 属性应用于独立宏的声明
677+
`freestanding` 特性应用于独立宏的声明
678678

679679
<!--
680680
@@ -704,7 +704,7 @@ https://github.com/apple/swift/blob/main/stdlib/public/core/Macros.swift#L102
704704
这些更改在非冻结类型上是允许的,
705705
但会破坏冻结类型的 ABI 兼容性。
706706

707-
> 注意当编译器不处于库演进模式时,
707+
> 注意: 当编译器不处于库演进模式时,
708708
> 所有结构体和枚举都被隐式冻结,
709709
> 此特性将被忽略。
710710
@@ -1014,8 +1014,8 @@ protocol ProvidesMain {
10141014

10151015
### NSApplicationMain
10161016

1017-
> 已弃用
1018-
> 此特性已弃用
1017+
> 已弃用:
1018+
> 此特性已弃用
10191019
> 请改用 <doc:Attributes#main> 特性。
10201020
> 在 Swift 6 中,
10211021
> 使用此特性将会导致错误。
@@ -1099,7 +1099,7 @@ Core Data 还会在运行时提供存储。
10991099

11001100
`objc` 属性可以选择接受一个特性参数,
11011101
该参数由一个标识符组成。
1102-
该标识符指定了向 Objective-C 暴露的被 `objc` 属性所应用到的实体的名称
1102+
该标识符指定了向 Objective-C 暴露的被 `objc` 特性所应用到的实体的名称
11031103
你可以使用此参数为类、枚举、枚举成员、协议、
11041104
方法、getter、setter 和构造器命名。
11051105
如果你为类、协议或枚举指定 Objective-C 名称,
@@ -1139,7 +1139,7 @@ class ExampleClass: NSObject {
11391139

11401140
更多信息,请参见 [Importing Swift into Objective-C](https://developer.apple.com/documentation/swift/imported_c_and_objective-c_apis/importing_swift_into_objective-c)
11411141

1142-
> 注意`objc` 特性的参数也可以更改该声明的运行时名称。
1142+
> 注意: `objc` 特性的参数也可以更改该声明的运行时名称。
11431143
> 当调用与 Objective-C 运行时交互的函数时,
11441144
> 例如 [`NSClassFromString(_:)`](https://developer.apple.com/documentation/foundation/1395135-nsclassfromstring)
11451145
> 以及在应用的 Info.plist 文件中指定类名时,
@@ -2197,7 +2197,8 @@ struct ArrayBuilder {
21972197

21982198
### UIApplicationMain
21992199

2200-
> 已弃用:此特性已弃用;
2200+
> 已弃用:
2201+
> 此特性已弃用;
22012202
> 请改用 <doc:Attributes#main> 特性。
22022203
> 在 Swift 6 中,使用此特性将会导致错误。
22032204
@@ -2352,7 +2353,7 @@ Interface Builder 属性是声明特性,供 Interface Builder 与 Xcode 同步
23522353
有关如何使用 `unknown` 特性的示例,
23532354
<doc:Statements#Switching-Over-Future-Enumeration-Cases>
23542355

2355-
> 特性的语法
2356+
> 特性的语法:
23562357
>
23572358
> *attribute***`@`** *attribute-name* *attribute-argument-clause*_?_ \
23582359
> *attribute-name**identifier* \
@@ -2366,7 +2367,7 @@ Interface Builder 属性是声明特性,供 Interface Builder 与 Xcode 同步
23662367
> *balanced-token* → 任意标识符、关键字、字面量或运算符 \
23672368
> *balanced-token* → 除了 **`(`****`)`****`[`****`]`****`{`****`}`** 之外的任何标点符号
23682369
2369-
> Beta 软件
2370+
> Beta 软件:
23702371
>
23712372
> 本文档包含有关正在开发中的 API 或技术的初步信息。此信息可能会有所变更,并且根据本文档实现的软件应使用最终的操作系统软件进行测试。
23722373
>

0 commit comments

Comments
 (0)