Skip to content

Commit 1414747

Browse files
committed
Don't include improper comment for .ascii test
1 parent 5067ad2 commit 1414747

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/inline-assembly.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,6 @@ The following directives are guaranteed to be supported by the assembler:
12601260
# #[cfg(target_arch = "x86_64")] {
12611261
let bytes: *const u8;
12621262
let len: usize;
1263-
// `push` and `pop` are UB when used with nostack
12641263
unsafe { core::arch::asm!("jmp 3f", "2: .ascii \"Hello World!\"", "3: lea {bytes}, [2b+rip]", "mov {len}, 12", bytes = out(reg) bytes, len = out(reg) len); }
12651264

12661265
let s = unsafe{core::str::from_utf8_unchecked(core::slice::from_raw_parts(bytes, len))};

0 commit comments

Comments
 (0)