Fix documentation build after rL369568
authorYuanfang Chen <yuanfang.chen@sony.com>
Wed, 21 Aug 2019 20:59:16 +0000 (20:59 +0000)
committerYuanfang Chen <yuanfang.chen@sony.com>
Wed, 21 Aug 2019 20:59:16 +0000 (20:59 +0000)
llvm-svn: 369578

clang-tools-extra/docs/clang-tidy/checks/bugprone-dynamic-static-initializers.rst

index 3da36ce..b4d5f75 100644 (file)
@@ -17,11 +17,11 @@ problems.
 
 Consider the following code:
 
--- code-block:: c
+.. code-block:: c
 
-int foo() {
-  static int k = bar();
-  return k;
-}
+  int foo() {
+    static int k = bar();
+    return k;
+  }
 
 When synchronization of static initialization is disabled, if two threads both call `foo` for the first time, there is the possibility that `k` will be double initialized, creating a race condition.