From 1caf564673a4a9422f48b7c6fa747bcb6fbc5bc5 Mon Sep 17 00:00:00 2001 From: Folkert de Vries Date: Fri, 20 Dec 2024 12:28:12 +0100 Subject: [PATCH] Update src/inline-assembly.md Co-authored-by: Laine Taffin Altman --- src/attributes/codegen.md | 2 -- src/inline-assembly.md | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/attributes/codegen.md b/src/attributes/codegen.md index 1f7d59384..c63b524a4 100644 --- a/src/attributes/codegen.md +++ b/src/attributes/codegen.md @@ -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. diff --git a/src/inline-assembly.md b/src/inline-assembly.md index 55635e011..23829e782 100644 --- a/src/inline-assembly.md +++ b/src/inline-assembly.md @@ -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) [","] ")" ```