mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-31 10:41:08 +00:00
doc: Fix wrong code in WITH_LOCK doxygen comment
This commit is contained in:
parent
7f5ebef56a
commit
fa61fadad1
@ -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
|
||||
//!
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user