Skip to content

Commit

Permalink
Merge pull request #4612 from alphaKAI/fix-typos-in-std-net-curl
Browse files Browse the repository at this point in the history
Fix typos in std.net.curl.byLineAsync&byChunkAsync
  • Loading branch information
dnadlinger committed Jul 19, 2016
2 parents f0b5f96 + 8d81309 commit fce3183
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions std/net/curl.d
Expand Up @@ -1575,8 +1575,8 @@ private static struct AsyncLineInputRange(Char)
* // Get a line in a background thread and wait in
* // main thread for 2 seconds for it to arrive.
* auto range3 = byLineAsync("dlang.com");
* if (range.wait(dur!"seconds"(2)))
* writeln(range.front);
* if (range3.wait(dur!"seconds"(2)))
* writeln(range3.front);
* else
* writeln("No line received after 2 seconds!");
* ----
Expand Down Expand Up @@ -1726,8 +1726,8 @@ private static struct AsyncChunkInputRange
* // Get a line in a background thread and wait in
* // main thread for 2 seconds for it to arrive.
* auto range3 = byChunkAsync("dlang.com", 10);
* if (range.wait(dur!"seconds"(2)))
* writeln(range.front);
* if (range3.wait(dur!"seconds"(2)))
* writeln(range3.front);
* else
* writeln("No chunk received after 2 seconds!");
* ----
Expand Down

0 comments on commit fce3183

Please sign in to comment.