Skip to content

Commit 610a09d

Browse files
committed
Fix typo
1 parent 786c45f commit 610a09d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rfcs/0000-inline-asm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ unsafe {
283283
assert_eq!(a, 8);
284284
```
285285

286-
Flags can be provided as an optional final argument to the `asm!` macro. We specified two flags here:
286+
Flags can be provided as an optional final argument to the `asm!` macro. We specified three flags here:
287287
- `pure` means that the asm code has no observable side effects and that its output depends only on its inputs. This allows the compiler optimizer to call the inline asm fewer times or even eliminate it entirely.
288288
- `nomem` means that the asm code does not read or write to memory. By default the compiler will assume that inline assembly can read or write any memory address that is accessible to it (e.g. through a pointer passed as an operand, or a global).
289289
- `nostack` means that the asm code does not push any data onto the stack. This allows the compiler to use optimizations such as the stack red zone on x86_64 to avoid stack pointer adjustments.

0 commit comments

Comments
 (0)