From a98c817066396aa8146abadcff618911227952fc Mon Sep 17 00:00:00 2001 From: Tshepang Mbambo Date: Fri, 11 Jul 2025 21:39:50 +0200 Subject: [PATCH] mention an important use for the naked attribute --- src/attributes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/attributes.md b/src/attributes.md index c66a8d2e1..7179401c9 100644 --- a/src/attributes.md +++ b/src/attributes.md @@ -291,7 +291,7 @@ The following is an index of all built-in attributes. - Code generation - [`inline`] --- Hint to inline code. - [`cold`] --- Hint that a function is unlikely to be called. - - [`naked`] --- Prevent the compiler from emitting a function prologue. + - [`naked`] --- Prevent the compiler from emitting a function prologue and epilogue. - [`no_builtins`] --- Disables use of certain built-in functions. - [`target_feature`] --- Configure platform-specific code generation. - [`track_caller`] --- Pass the parent call location to `std::panic::Location::caller()`.