Skip to content

Commit c61f0e2

Browse files
committed
Slightly reword the used intro
1 parent 45d2a26 commit c61f0e2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/abi.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ r[abi.used]
1313
## The `used` attribute
1414

1515
r[abi.used.intro]
16-
The *`used` attribute* can only be applied to [`static` items]. This [attribute] forces the compiler to keep the variable in the output object file (.o, .rlib, etc. excluding final binaries) even if the variable is not used, or referenced, by any other item in the crate. However, the linker is still free to remove such an item.
16+
The *`used` [attribute]* forces a [`static` item][items.static] to be kept in the output object file (.o, .rlib, etc. excluding final binaries) even if the static is never used, or referenced, by an other item in the crate. However, the linker is still free to remove such an item.
1717

1818
Below is an example that shows under what conditions the compiler keeps a `static` item in the output object file.
1919

@@ -131,7 +131,6 @@ r[abi.export_name.edition2024]
131131
> [!EDITION-2024]
132132
> Before the 2024 edition it is allowed to use the `export_name` attribute without the `unsafe` qualification.
133133
134-
[`static` items]: items/static-items.md
135134
[attribute]: attributes.md
136135
[extern functions]: items/functions.md#extern-function-qualifier
137136
[external blocks]: items/external-blocks.md

0 commit comments

Comments
 (0)