From abaad55a66e5baaec6d9c20c077633d704e2a44a Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Sun, 31 May 2015 18:10:54 +0300 Subject: [PATCH] future: fix documentation errors Noted by Nadav. --- core/future.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/future.hh b/core/future.hh index 153ce5fd89..a097963291 100644 --- a/core/future.hh +++ b/core/future.hh @@ -49,7 +49,7 @@ /// /// \brief /// The normal way of working with futures is to chain continuations -/// to them. A continuation is a block of code (usually a lamba) +/// to them. A continuation is a block of code (usually a lamdba) /// that is called when the future is assigned a value (the future /// is resolved); the continuation can then access the actual value. /// @@ -96,9 +96,9 @@ future make_ready_future(A&&... value); /// \brief Creates a \ref future in an available, failed state. /// /// Creates a \ref future object that is already resolved in a failed -/// state. This no I/O needs to be performed to perform a computation -/// (for example, because the connection is closed and we cannot read -/// from it). +/// state. This is useful when no I/O needs to be performed to perform +/// a computation (for example, because the connection is closed and +/// we cannot read from it). template future make_exception_future(std::exception_ptr value) noexcept;