Skip to content

Commit

Permalink
fix rule name
Browse files Browse the repository at this point in the history
Co-authored-by: bjorn3 <[email protected]>
  • Loading branch information
folkertdev and bjorn3 authored Dec 2, 2024
1 parent 959b8f1 commit 5deb3b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inline-assembly.md
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ r[asm.naked-rules.mem-same-as-ffi]
- Refer to the unsafe code guidelines for the exact rules.
- These rules do not apply to memory which is private to the asm code, such as stack space allocated within the asm block.

r[asm.rules.black-box]
r[asm.naked-rules.black-box]
- The compiler cannot assume that the instructions in the asm are the ones that will actually end up executed.
- 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.
- Runtime code patching is allowed, via target-specific mechanisms.
Expand Down

0 comments on commit 5deb3b5

Please sign in to comment.