fix some typos in the code samples for combineLatest (#53)

This commit is contained in:
Philippe Hausler authored and GitHub committed 2022-02-18 15:24:21 -08:00
1 parent aebc7af342
commit 17bca92f90
1 file changed
+2 -2
+2 -2
View File
@@ -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)")
}
```