We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dfb244 commit 739815fCopy full SHA for 739815f
Guides/Zip.md
@@ -6,10 +6,10 @@
6
Combines the latest values produced from two or more asynchronous sequences into an asynchronous sequence of tuples.
7
8
```swift
9
-let appleFeed = URL("http://www.example.com/ticker?symbol=AAPL").lines
10
-let nasdaqFeed = URL("http://www.example.com/ticker?symbol=^IXIC").lines
+let appleFeed = URL(string: "http://www.example.com/ticker?symbol=AAPL")!.lines
+let nasdaqFeed = URL(string: "http://www.example.com/ticker?symbol=^IXIC")!.lines
11
12
-for try await (apple, nasdaq) = zip(appleFeed, nasdaqFeed) {
+for try await (apple, nasdaq) in zip(appleFeed, nasdaqFeed) {
13
print("APPL: \(apple) NASDAQ: \(nasdaq)")
14
}
15
```
0 commit comments