about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2023-03-23 00:00:30 +0530
committerGitHub <noreply@github.com>2023-03-23 00:00:30 +0530
commit59d9cbfa14086540419611491dae90b90daeb588 (patch)
tree8e374dd851b5e273bc737e3feef8631a3413d1a7
parentd694f47baa48c301b598f55f4f7c148e2048de79 (diff)
parentdf034b06b72f97a39844ce84a648e4de7fa2c58d (diff)
downloadrust-59d9cbfa14086540419611491dae90b90daeb588.tar.gz
rust-59d9cbfa14086540419611491dae90b90daeb588.zip
Rollup merge of #108997 - tgross35:patch-1, r=JohnTitor
Change text -> rust highlighting in sanitizer.md

Not sure why this has syntax highlighting turned off, but it doesn't need to be

Relevant page: https://doc.rust-lang.org/beta/unstable-book/compiler-flags/sanitizer.html
-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)