Skip to content

Commit e9abfb7

Browse files
committed
Reword abi.link_section.unsafe to match attribute template
1 parent 0a7306d commit e9abfb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/abi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Only the last instance of `link_section` on an item is honored. Previous `link_s
122122
> `rustc` currently warns on preceding duplicate `link_section` attributes. This may become an error in the future.
123123
124124
r[abi.link_section.unsafe]
125-
This attribute is unsafe as it allows users to place data and code into sections of memory not expecting them, such as mutable data into read-only areas.
125+
The `link_section` attribute must be marked with [`unsafe`][attributes.safety] because it allows users to place data and code into sections of memory not expecting them, such as mutable data into read-only areas.
126126
127127
r[abi.link_section.edition2024]
128128
> [!EDITION-2024]

0 commit comments

Comments
 (0)