]> granicus.if.org Git - llvm/commitdiff
[XRay] Fix typo in docs. NFC
authorFangrui Song <maskray@google.com>
Mon, 27 Nov 2017 16:59:26 +0000 (16:59 +0000)
committerFangrui Song <maskray@google.com>
Mon, 27 Nov 2017 16:59:26 +0000 (16:59 +0000)
Reviewers: dberris

Differential Revision: https://reviews.llvm.org/D40461

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319047 91177308-0d34-0410-b5e6-96231b3b80d8

docs/XRay.rst
docs/XRayExample.rst

index 9e08c3588039633e259ca836b80adc928669f584..e9ecc13e3b2863b693c377c90c41f12fcde7ab85 100644 (file)
@@ -75,11 +75,11 @@ GCC-style attributes or C++11-style attributes.
 
 .. code-block:: c++
 
-    [[clang::xray_always_intrument]] void always_instrumented();
+    [[clang::xray_always_instrument]] void always_instrumented();
 
     [[clang::xray_never_instrument]] void never_instrumented();
 
-    void alt_always_instrumented() __attribute__((xray_always_intrument));
+    void alt_always_instrumented() __attribute__((xray_always_instrument));
 
     void alt_never_instrumented() __attribute__((xray_never_instrument));
 
index 718b302a50327ea87bfd569c210040f462001c11..56f17507d82f14c2b6544399fcb58708cf5722b6 100644 (file)
@@ -275,11 +275,11 @@ application.
   #include <iostream>
   #include <thread>
 
-  [[clang::xray_always_intrument]] void f() {
+  [[clang::xray_always_instrument]] void f() {
     std::cerr << '.';
   }
 
-  [[clang::xray_always_intrument]] void g() {
+  [[clang::xray_always_instrument]] void g() {
     for (int i = 0; i < 1 << 10; ++i) {
       std::cerr << '-';
     }