mirror of
https://github.com/apple/swift-async-algorithms
synced 2026-11-25 04:27:48 +00:00
fix some typos in the code samples for combineLatest (#53)
This commit is contained in:
1 parent
aebc7af342
commit
17bca92f90
1 file changed
+2
-2
@@ -9,8 +9,8 @@ Combines the latest values produced from two or more asynchronous sequences into
|
||||
let appleFeed = URL("http://www.example.com/ticker?symbol=AAPL").lines
|
||||
let nasdaqFeed = URL("http://www.example.com/ticker?symbol=^IXIC").lines
|
||||
|
||||
for try await (apple, nasdaq) = combineLatest(appleFeed, nasdaqFeed) {
|
||||
print("APPL: \(apple) NASDAQ: \(nasdaq)")
|
||||
for try await (apple, nasdaq) in combineLatest(appleFeed, nasdaqFeed) {
|
||||
print("AAPL: \(apple) NASDAQ: \(nasdaq)")
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user