Skip to content

Commit 7429b4b

Browse files
committed
Minor update of link_ordinal
More closely align with the template, and some minor word tweaks.
1 parent d4c24e3 commit 7429b4b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/items/external-blocks.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,7 @@ Only the last use of `link_name` on an item has effect.
497497
r[items.extern.attributes.link_name.link_ordinal]
498498
The `link_name` attribute may not be used with the [`link_ordinal`] attribute.
499499
500+
<!-- template:attributes -->
500501
r[items.extern.attributes.link_ordinal]
501502
### The `link_ordinal` attribute
502503
@@ -529,10 +530,10 @@ r[items.extern.attributes.link_ordinal.max]
529530
The ordinal must be less than or equal to [`u16::MAX`].
530531

531532
r[items.extern.attributes.link_ordinal.allowed-positions]
532-
The `link_ordinal` attribute may be specified on a function or static in an `extern` block.
533+
The `link_ordinal` attribute may only be applied to a function or static in an `extern` block.
533534

534535
r[items.extern.attributes.link_ordinal.duplicates]
535-
The `link_ordinal` attribute may only be specified once on an item.
536+
The `link_ordinal` attribute may be used only once on an item.
536537

537538
r[items.extern.attributes.link_ordinal.allowed-kinds]
538539
The `link_ordinal` attribute may only be used with the [`raw-dylib` linking kind][items.extern.attributes.link.raw-dylib].

0 commit comments

Comments
 (0)