修正一些疏忽
This commit is contained in:
@ -366,7 +366,7 @@ continue `label name`
|
|||||||
|
|
||||||
```swift
|
```swift
|
||||||
return
|
return
|
||||||
return `表达式`
|
return `expression`
|
||||||
```
|
```
|
||||||
|
|
||||||
当`return`语句后面带表达式时,表达式的值将会返回给调用者。如果表达式值的类型与调用者期望的类型不匹配,Swift 则会在返回表达式的值之前将表达式值的类型转换为调用者期望的类型。
|
当`return`语句后面带表达式时,表达式的值将会返回给调用者。如果表达式值的类型与调用者期望的类型不匹配,Swift 则会在返回表达式的值之前将表达式值的类型转换为调用者期望的类型。
|
||||||
|
|||||||
Reference in New Issue
Block a user