doc: Fix wrong code in WITH_LOCK doxygen comment
This commit is contained in:
1 file changed
+2
-2
+2
-2
@@ -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
|
//! Since the return type deduction follows that of decltype(auto), while the
|
||||||
//! deduced type of:
|
//! 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:
|
//! 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
|
//! is &int, a reference to a local variable
|
||||||
//!
|
//!
|
||||||
|
|||||||
Reference in new issue
Block a user