Skip to content

Commit

Permalink
Update src/inline-assembly.md
Browse files Browse the repository at this point in the history
Co-authored-by: Laine Taffin Altman <alexanderaltman@me.com>
  • Loading branch information
folkertdev and pthariensflame committed Feb 13, 2025
1 parent e84c912 commit 1caf564
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/attributes/codegen.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ be called.
r[attributes.codegen.naked]
## The `naked` attribute

r[attributes.codegen.naked]

r[attributes.codegen.naked.intro]
The *`naked` [attribute]* prevents the compiler from emitting a function prologue and
epilogue for the attributed function.
Expand Down
2 changes: 1 addition & 1 deletion src/inline-assembly.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ option := "pure" / "nomem" / "readonly" / "preserves_flags" / "noreturn" / "nost
options := "options(" option *("," option) [","] ")"
operand := reg_operand / clobber_abi / options
asm := "asm!(" format_string *("," format_string) *("," operand) [","] ")"
naked_asm := "asm!(" format_string *("," format_string) *("," operand) [","] ")"
naked_asm := "naked_asm!(" format_string *("," format_string) *("," operand) [","] ")"
global_asm := "global_asm!(" format_string *("," format_string) *("," operand) [","] ")"
```

Expand Down

0 comments on commit 1caf564

Please sign in to comment.