[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

llvm-svn: 319047

llvm/docs/XRay.rst
llvm/docs/XRayExample.rst

index 9e08c35..e9ecc13 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 718b302..56f1750 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 << '-';
     }