typo and code format (#1217)
This commit is contained in:
@ -627,10 +627,11 @@ let threeOfSpadesDescription = threeOfSpades.simpleDescription()
|
|||||||
|
|
||||||
```swift
|
```swift
|
||||||
func fetchUserID(from server: String) async -> Int {
|
func fetchUserID(from server: String) async -> Int {
|
||||||
if server == "primary"
|
if server == "primary" {
|
||||||
return 97
|
return 97
|
||||||
}
|
}
|
||||||
return 501
|
return 501
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
您还可以通过在函数名前添加 `await` 来标记对异步函数的调用
|
您还可以通过在函数名前添加 `await` 来标记对异步函数的调用
|
||||||
|
|||||||
Reference in New Issue
Block a user