mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-02-09 08:43:04 +01:00
Merge bitcoin/bitcoin#34355: doc: Fix wrong code in WITH_LOCK doxygen comment
fa61fadad1doc: Fix wrong code in WITH_LOCK doxygen comment (MarcoFalke) Pull request description: The typo is harmless, but a bit confusing every time i read it ACKs for top commit: hebasto: re-ACKfa61fadad1. l0rinc: ACKfa61fadad1Tree-SHA512: 302a284198178954512267e8c0a5708738d77aac1cf609d8cbb386bee78d705f7e0df42a7bd8300afc18d42fa271c7f4cda932b1cbea33385622b3760bb95fad
This commit is contained in:
@@ -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
|
||||
//!
|
||||
|
||||
Reference in New Issue
Block a user