aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorIan Forsey <forsey@gmail.com>2013-06-05 23:50:42 +0200
committerIan Forsey <forsey@gmail.com>2013-06-05 23:50:42 +0200
commit3da464a8ee27ad5a1cd0c99dc5b73cafba6ce738 (patch)
tree0351a6fe7242e227fd4640a325957e3f92656838 /README.md
parent9156cbeb944db80245766c317f43434b4c1981e5 (diff)
downloadscala-async-3da464a8ee27ad5a1cd0c99dc5b73cafba6ce738.tar.gz
scala-async-3da464a8ee27ad5a1cd0c99dc5b73cafba6ce738.tar.bz2
scala-async-3da464a8ee27ad5a1cd0c99dc5b73cafba6ce738.zip
Fix line numbers for example in README
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 10c71f4..3d64e49 100644
--- a/README.md
+++ b/README.md
@@ -38,7 +38,7 @@ val x: Int = Await.result(combined, 10.seconds) // 05
Lines 1 defines an asynchronous method: it returns a `Future`.
-Line 3 begins an `async` block. During compilation,
+Line 2 begins an `async` block. During compilation,
the contents of this block will be analyzed to identify
the `await` calls, and transformed into non-blocking
code.
@@ -47,7 +47,7 @@ Control flow will immediately pass to line 5, as the
computation in the `async` block is not executed
on the caller's thread.
-Line 4 begins by triggering `slowCalcFuture`, and then
+Line 3 begins by triggering `slowCalcFuture`, and then
suspending until it has been calculating. Only after it
has finished, we trigger it again, and suspend again.
Finally, we add the results and complete `combined`, which