Skip to content

Commit

Permalink
Fix possible misleading code example;
Browse files Browse the repository at this point in the history
  • Loading branch information
KonH authored Jul 18, 2018
1 parent 93083f7 commit 8ce7335
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ urls.Add("www.google.com");
urls.Add("www.yahoo.com");

Promise<string[]>
.All(url => Download(url)) // Download each URL.
.All(urls.Select(url => Download(url))) // Download each URL.
.Then(pages => // Receives collection of downloaded pages.
pages.SelectMany(
page => ExtractAllLinks(page) // Extract links from all pages then flatten to single collection of links.
Expand Down

0 comments on commit 8ce7335

Please sign in to comment.