@@ -66,18 +66,17 @@ item's name.
66
66
Additionally, the item will be publicly exported from the produced library or
67
67
object file, similar to the [ ` used ` attribute] ( #the-used-attribute ) .
68
68
69
- This attribute is unsafe as an unmangled symbol may collide with another
70
- symbol with the same name (or a well-known symbol), leading to undefined behavior.
69
+ This attribute is unsafe as an unmangled symbol may collide with another symbol
70
+ with the same name (or with a well-known symbol), leading to undefined behavior.
71
71
72
72
## The ` link_section ` attribute
73
73
74
74
The * ` link_section ` attribute* specifies the section of the object file that a
75
75
[ function] or [ static] 's content will be placed into. It uses the
76
76
[ _ MetaNameValueStr_ ] syntax to specify the section name.
77
77
78
- This attribute is unsafe as using ` link_section ` allows users to place data
79
- and code into sections of memory not expecting them, such as mutable data
80
- into read-only areas.
78
+ This attribute is unsafe as it allows users to place data and code into sections
79
+ of memory not expecting them, such as mutable data into read-only areas.
81
80
82
81
<!-- no_run: don't link. The format of the section name is platform-specific. -->
83
82
``` rust,no_run
@@ -93,7 +92,8 @@ exported on a [function] or [static]. It uses the [_MetaNameValueStr_] syntax
93
92
to specify the symbol name.
94
93
95
94
This attribute is unsafe as a symbol with a custom name may collide with another
96
- symbol with the same name (or a well-known symbol), leading to undefined behavior.
95
+ symbol with the same name (or with a well-known symbol), leading to undefined
96
+ behavior.
97
97
98
98
``` rust
99
99
#[export_name = " exported_symbol_name" ]
0 commit comments