Skip to content

Commit 189004e

Browse files
Update src/inline-assembly.md
Co-authored-by: Laine Taffin Altman <[email protected]>
1 parent 5e43776 commit 189004e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/attributes/codegen.md

-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ be called.
4949
r[attributes.codegen.naked]
5050
## The `naked` attribute
5151

52-
r[attributes.codegen.naked]
53-
5452
r[attributes.codegen.naked.intro]
5553
The *`naked` [attribute]* prevents the compiler from emitting a function prologue and
5654
epilogue for the attributed function.

src/inline-assembly.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ option := "pure" / "nomem" / "readonly" / "preserves_flags" / "noreturn" / "nost
5959
options := "options(" option *("," option) [","] ")"
6060
operand := reg_operand / clobber_abi / options
6161
asm := "asm!(" format_string *("," format_string) *("," operand) [","] ")"
62-
naked_asm := "asm!(" format_string *("," format_string) *("," operand) [","] ")"
62+
naked_asm := "naked_asm!(" format_string *("," format_string) *("," operand) [","] ")"
6363
global_asm := "global_asm!(" format_string *("," format_string) *("," operand) [","] ")"
6464
```
6565

0 commit comments

Comments
 (0)