Merge bitcoin/bitcoin#34355: doc: Fix wrong code in WITH_LOCK doxygen comment

fa61fadad1c3df0274c3ddd351b8d68a0c4fe644 doc: 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-ACK fa61fadad1c3df0274c3ddd351b8d68a0c4fe644.
  l0rinc:
    ACK fa61fadad1c3df0274c3ddd351b8d68a0c4fe644

Tree-SHA512: 302a284198178954512267e8c0a5708738d77aac1cf609d8cbb386bee78d705f7e0df42a7bd8300afc18d42fa271c7f4cda932b1cbea33385622b3760bb95fad
This commit is contained in:
Hennadii Stepanov 2026-01-22 11:22:34 +00:00
commit 1fbbdd20cd
No known key found for this signature in database
GPG Key ID: 410108112E7EA81F

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
//!