README: fix typo
This commit is contained in:
@@ -85,7 +85,7 @@ future<> put(int) // promises to store an int
|
||||
future<> loop_to(int end) {
|
||||
get().then([end] (int value) {
|
||||
if (value == end) {
|
||||
return make_read_future<>();
|
||||
return make_ready_future<>();
|
||||
}
|
||||
return put(value + 1);
|
||||
}).then([end] {
|
||||
@@ -96,4 +96,4 @@ future<> loop_to(int end) {
|
||||
|
||||
The *make_ready_future()* function returns a future that is already
|
||||
available --- corresponding to the loop termination condition, where
|
||||
no further I/O needs to take place.
|
||||
no further I/O needs to take place.
|
||||
|
||||
Reference in New Issue
Block a user