From bac1ace9bff826faa6c608d073d69b307dd17fde Mon Sep 17 00:00:00 2001 From: Sara Date: Mon, 27 Oct 2025 14:42:55 +0100 Subject: [PATCH] fix: specified cpp for code block in README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b40c788..85b3081 100644 --- a/README.md +++ b/README.md @@ -25,13 +25,13 @@ Either `git clone --recursive` or remember to `git submodule update --init --rec > (1) Bracket exceptions: > * using scoped_lock in arbitrary blocks, prefer tailed lisp brackets -``` +```cpp struct Data { int x{ 0 }, y{ 0 }; }; void MyFunction(Data const &data) { // K&R here DoAsynchronousThings(); - { scoped_lock lock{ myMutex }; + { std::scoped_lock lock{ myMutex }; myVariable++; } // not quite lisp, lisp with a tail DoMoreAsynchronousThings();