Commit 0fb92820 authored by Kenton Varda's avatar Kenton Varda Committed by GitHub

Merge pull request #338 from katreniak/bka-kjDeferDoc

KJ_DEFER fix doc: deferred code is run at scope exit
parents 71c4a06b f8297bcc
......@@ -1329,7 +1329,7 @@ _::Deferred<Func> defer(Func&& func) {
// you need to assign to an `auto` variable.
//
// 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));
}
......
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