about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTrevor Gross <tmgross@umich.edu>2023-03-10 13:23:46 -0500
committerTrevor Gross <tmgross@umich.edu>2023-03-22 01:11:39 -0400
commitdf034b06b72f97a39844ce84a648e4de7fa2c58d (patch)
tree3b106ecb5045e691447f94152c02a14c3696034b
parent6dc3999c2699461aa930b8c1e00f99e73dcc0174 (diff)
downloadrust-df034b06b72f97a39844ce84a648e4de7fa2c58d.tar.gz
rust-df034b06b72f97a39844ce84a648e4de7fa2c58d.zip
Change text -> rust,ignore highlighting in sanitizer.md
Marked ignore due to difficulty getting doctests to pass cross-platform
-rw-r--r--src/doc/unstable-book/src/compiler-flags/sanitizer.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/unstable-book/src/compiler-flags/sanitizer.md b/src/doc/unstable-book/src/compiler-flags/sanitizer.md
index 262cef3454a..f71aceff455 100644
--- a/src/doc/unstable-book/src/compiler-flags/sanitizer.md
+++ b/src/doc/unstable-book/src/compiler-flags/sanitizer.md
@@ -213,7 +213,7 @@ See the [Clang ControlFlowIntegrity documentation][clang-cfi] for more details.
 
 ## Example
 
-```text
+```rust,ignore
 #![feature(naked_functions)]
 
 use std::arch::asm;
@@ -238,7 +238,7 @@ pub extern "C" fn add_two(x: i32) {
              nop
              nop
              nop
-             lea rax, [rdi+2]
+             lea eax, [edi+2]
              ret
         ",
             options(noreturn)