summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorakhropov <[email protected]>2026-04-21 00:23:56 +0300
committerakhropov <[email protected]>2026-04-21 00:45:21 +0300
commitd04f9f183e013e565f1daeb3268e75cf3ffaffa2 (patch)
treeb80822bde9371247148291f09a55f910ff2474ac /util
parent32cae4e9e297f09400acce1926c2b3d2d837c350 (diff)
Fix description: function -> body block
commit_hash:a4449ed4850ea3acd49ac3b7eb51fd5f04905285
Diffstat (limited to 'util')
-rw-r--r--util/generic/scope.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/generic/scope.h b/util/generic/scope.h
index 8c5a63090e3..2ae3feb7178 100644
--- a/util/generic/scope.h
+++ b/util/generic/scope.h
@@ -33,8 +33,8 @@ namespace NPrivate {
// \brief `Y_SCOPE_EXIT(captures) { body };`
//
-// General implementaion of RAII idiom (resource acquisition is initialization). Executes
-// function upon return from the current scope.
+// General implementaion of RAII idiom (resource acquisition is initialization). Executes code in the `body` block
+// upon return from the current scope.
//
// @note expects `body` to provide no-throw guarantee, otherwise whenever an exception
// is thrown and leaves the outermost block of `body`, the function `std::terminate` is called.