Skip to content

Commit 9bbc14a

Browse files
committed
Merge pull request #20 from theon/patch-1
Fix line numbers for example in README
2 parents 1e53182 + 3da464a commit 9bbc14a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ val x: Int = Await.result(combined, 10.seconds) // 05
4747

4848
Lines 1 defines an asynchronous method: it returns a `Future`.
4949

50-
Line 3 begins an `async` block. During compilation,
50+
Line 2 begins an `async` block. During compilation,
5151
the contents of this block will be analyzed to identify
5252
the `await` calls, and transformed into non-blocking
5353
code.
@@ -56,7 +56,7 @@ Control flow will immediately pass to line 5, as the
5656
computation in the `async` block is not executed
5757
on the caller's thread.
5858

59-
Line 4 begins by triggering `slowCalcFuture`, and then
59+
Line 3 begins by triggering `slowCalcFuture`, and then
6060
suspending until it has been calculating. Only after it
6161
has finished, we trigger it again, and suspend again.
6262
Finally, we add the results and complete `combined`, which

0 commit comments

Comments
 (0)