Skip to content

Commit 1caf564

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

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
@@ -52,8 +52,6 @@ be called.
5252
r[attributes.codegen.naked]
5353
## The `naked` attribute
5454

55-
r[attributes.codegen.naked]
56-
5755
r[attributes.codegen.naked.intro]
5856
The *`naked` [attribute]* prevents the compiler from emitting a function prologue and
5957
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)