Commit f8297bcc authored by Branislav Katreniak's avatar Branislav Katreniak

KJ_DEFER fix doc: deferred code is run at scope exit

parent 71c4a06b
...@@ -1329,7 +1329,7 @@ _::Deferred<Func> defer(Func&& func) { ...@@ -1329,7 +1329,7 @@ _::Deferred<Func> defer(Func&& func) {
// you need to assign to an `auto` variable. // you need to assign to an `auto` variable.
// //
// The KJ_DEFER macro provides slightly more convenient syntax for the common case where you // The KJ_DEFER macro provides slightly more convenient syntax for the common case where you
// want some code to run at function exit. // want some code to run at current scope exit.
return _::Deferred<Func>(kj::fwd<Func>(func)); return _::Deferred<Func>(kj::fwd<Func>(func));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment