Skip to content

Commit 1efa287

Browse files
folkertdevbjorn3
andcommitted
fix rule name
Co-authored-by: bjorn3 <17426603+bjorn3@users.noreply.github.com>
1 parent b57fa0d commit 1efa287

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/inline-assembly.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ r[asm.naked-rules.mem-same-as-ffi]
726726
- Refer to the unsafe code guidelines for the exact rules.
727727
- These rules do not apply to memory which is private to the asm code, such as stack space allocated within the asm block.
728728

729-
r[asm.rules.black-box]
729+
r[asm.naked-rules.black-box]
730730
- The compiler cannot assume that the instructions in the asm are the ones that will actually end up executed.
731731
- This effectively means that the compiler must treat the `naked_asm!` as a black box and only take the interface specification into account, not the instructions themselves.
732732
- Runtime code patching is allowed, via target-specific mechanisms.

0 commit comments

Comments
 (0)