From e45916fadaa4e0d98ef83b3ae32f87cda436c93e Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Sat, 14 Jun 2025 00:04:08 +0200 Subject: [PATCH] [docs] QScopeGuard: fix a grammar mistake in ctor docs Even though there are two \fn's, we still use singular form when we refer to the effects of the function. Amends 4f077b7e5ff1081afc0e362bdab6522c2b7ee43b. Pick-to: 6.10 6.9 6.8 6.5 Change-Id: I7cc150eb96b4aac40abcf7076bb82049a209f837 Reviewed-by: Thiago Macieira --- src/corelib/tools/qscopeguard.qdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/tools/qscopeguard.qdoc b/src/corelib/tools/qscopeguard.qdoc index a3fee22ce34..4c49220755b 100644 --- a/src/corelib/tools/qscopeguard.qdoc +++ b/src/corelib/tools/qscopeguard.qdoc @@ -31,7 +31,7 @@ QT_BEGIN_NAMESPACE \fn template QScopeGuard::QScopeGuard(F &&f) \fn template QScopeGuard::QScopeGuard(const F &f) - Create a scope guard that will execute \a f at the end of the scope. + Creates a scope guard that will execute \a f at the end of the scope. If \e F is a lambda, its type cannot be written. In that case you need to either rely on class template argument deduction (C++17 feature) and leave