Skip to content

Commit 27501fa

Browse files
hdmdhrShinolr
andauthored
Update swift-6-beta.docc/LanguageGuide/TheBasics.md
Co-authored-by: Shinolr <[email protected]>
1 parent 8588aa9 commit 27501fa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

swift-6-beta.docc/LanguageGuide/TheBasics.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1521,8 +1521,7 @@ assert(age >= 0)
15211521
```
15221522
-->
15231523

1524-
如果代码已经检查了条件,则使用 [`assertionFailure(_:file:line:)`](https://developer.apple.com/documentation/swift/1539616-assertionfailure) 函数来表示断言失败。
1525-
例如:
1524+
如果代码已经检查了条件,则使用 [`assertionFailure(_:file:line:)`](https://developer.apple.com/documentation/swift/1539616-assertionfailure) 函数来表示断言失败。例如:
15261525

15271526
```swift
15281527
if age > 10 {

0 commit comments

Comments
 (0)