mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-21 03:57:38 +00:00
Change text -> rust,ignore highlighting in sanitizer.md
Marked ignore due to difficulty getting doctests to pass cross-platform
This commit is contained in:
parent
6dc3999c26
commit
df034b06b7
@ -213,7 +213,7 @@ See the [Clang ControlFlowIntegrity documentation][clang-cfi] for more details.
|
|||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
```text
|
```rust,ignore
|
||||||
#![feature(naked_functions)]
|
#![feature(naked_functions)]
|
||||||
|
|
||||||
use std::arch::asm;
|
use std::arch::asm;
|
||||||
@ -238,7 +238,7 @@ pub extern "C" fn add_two(x: i32) {
|
|||||||
nop
|
nop
|
||||||
nop
|
nop
|
||||||
nop
|
nop
|
||||||
lea rax, [rdi+2]
|
lea eax, [edi+2]
|
||||||
ret
|
ret
|
||||||
",
|
",
|
||||||
options(noreturn)
|
options(noreturn)
|
||||||
|
Loading…
Reference in New Issue
Block a user