Skip to content

Commit 84e54de

Browse files
dmcardleAlexisPerry
authored andcommitted
[clang][ThreadSafety] Fix code block syntax in ThreadSafetyAnalysis.rst (llvm#96494)
Without a newline, documentation was failing to build with this error: Warning, treated as error: /home/runner/work/llvm-project/llvm-project/clang-build/tools/clang/docs/ThreadSafetyAnalysis.rst:466:Error in "code-block" directive: maximum 1 argument(s) allowed, 10 supplied. Issue llvm#92408
1 parent e038ef9 commit 84e54de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/docs/ThreadSafetyAnalysis.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,7 @@ on success and ``LockNotAcquired`` on failure, the analysis may fail to detect
464464
access to guarded data without holding the mutex because they are both non-zero.
465465

466466
.. code-block:: c++
467+
467468
// *** Beware: this code demonstrates incorrect usage. ***
468469

469470
enum TrylockResult { LockAcquired = 1, LockNotAcquired = 2 };

0 commit comments

Comments
 (0)