Skip to content

Commit a230611

Browse files
committed
fix: line break
1 parent 99f666f commit a230611

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,7 @@ print(repeatLabels(a: 1, b: 2, c: 3, b: 2, a: 1))
379379
```
380380
-->
381381

382-
`dynamicallyCall(withKeywordArguments:)` 方法的声明必须有一个遵循 [`ExpressibleByDictionaryLiteral`](https://developer.apple.com/documentation/swift/expressiblebydictionaryliteral) 协议的单一参数,
383-
返回类型可以是任何类型。参数的 [`Key`](https://developer.apple.com/documentation/swift/expressiblebydictionaryliteral/2294108-key) 必须遵循 [`ExpressibleByStringLiteral`](https://developer.apple.com/documentation/swift/expressiblebystringliteral)。前面的例子使用 [`KeyValuePairs`](https://developer.apple.com/documentation/swift/keyvaluepairs) 作为参数类型,以便调用者可以包含重复的参数标签——`a``b` 在对 `repeat` 的调用中出现多次。
382+
`dynamicallyCall(withKeywordArguments:)` 方法的声明必须有一个遵循 [`ExpressibleByDictionaryLiteral`](https://developer.apple.com/documentation/swift/expressiblebydictionaryliteral) 协议的单一参数,返回类型可以是任何类型。参数的 [`Key`](https://developer.apple.com/documentation/swift/expressiblebydictionaryliteral/2294108-key) 必须遵循 [`ExpressibleByStringLiteral`](https://developer.apple.com/documentation/swift/expressiblebystringliteral)。前面的例子使用 [`KeyValuePairs`](https://developer.apple.com/documentation/swift/keyvaluepairs) 作为参数类型,以便调用者可以包含重复的参数标签——`a``b` 在对 `repeat` 的调用中出现多次。
384383

385384
如果你两种不同参数类型的 `dynamicallyCall` 方法,当方法调用包含关键字参数时,将调用 `dynamicallyCall(withKeywordArguments:)`。在所有其他情况下,将调用 `dynamicallyCall(withArguments:)`
386385

0 commit comments

Comments
 (0)