Skip to content

Commit

Permalink
Rollup merge of #108997 - tgross35:patch-1, r=JohnTitor
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Dylan-DPC committed Mar 22, 2023
2 parents d694f47 + df034b0 commit 59d9cbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/doc/unstable-book/src/compiler-flags/sanitizer.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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)
Expand Down

0 comments on commit 59d9cbf

Please sign in to comment.