Skip to content

Commit 596d292

Browse files
committed
Revise supported-options.nostack
The phrase "for a function call at the start..." creates a miscue. One would tend to read "at the start" as restricting the kind of function call until realizing that doesn't make sense in this context; then one has to backtrack. Let's move that clause earlier to avoid this. Should some of these be nonrestrictive clauses? Are they parenthetical? We'll say "no" for now, but arguably this could go the other way.
1 parent 3b3881e commit 596d292

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
@@ -1226,7 +1226,7 @@ let _: () = unsafe {
12261226

12271227
r[asm.options.supported-options.nostack]
12281228
- `nostack`: The assembly code does not push data to the stack, or write to the stack red-zone (if supported by the target).
1229-
If this option is *not* used then the stack pointer is guaranteed by the compiler to be suitably aligned (according to the target ABI) for a function call at the start of the assembly code.
1229+
If this option is *not* used then the stack pointer is guaranteed by the compiler at the start of the assembly code to be suitably aligned (according to the target ABI) for a function call.
12301230

12311231
<!-- no_run: Test has undefined behavior at runtime -->
12321232
```rust,no_run

0 commit comments

Comments
 (0)