doc: Fix wrong code in WITH_LOCK doxygen comment

This commit is contained in:
MarcoFalke 2026-01-20 17:59:07 +01:00
parent 7f5ebef56a
commit fa61fadad1
No known key found for this signature in database

View File

@ -277,11 +277,11 @@ inline MutexType* MaybeCheckNotHeld(MutexType* m) LOCKS_EXCLUDED(m) LOCK_RETURNE
//! Since the return type deduction follows that of decltype(auto), while the
//! deduced type of:
//!
//! WITH_LOCK(cs, return {int i = 1; return i;});
//! WITH_LOCK(cs, int i = 1; return i);
//!
//! is int, the deduced type of:
//!
//! WITH_LOCK(cs, return {int j = 1; return (j);});
//! WITH_LOCK(cs, int j = 1; return (j));
//!
//! is &int, a reference to a local variable
//!