typo and code format (#1217)

This commit is contained in:
Jie Liu
2023-03-04 11:19:02 +08:00
committed by GitHub
parent fe2c9ede92
commit 9a000a2ff0

View File

@ -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` 来标记对异步函数的调用