Skip to content

Commit 1f023cc

Browse files
committed
Tidy links
1 parent 3d0237b commit 1f023cc

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

src/abi.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ pub fn name_in_rust() { }
8888
[_MetaNameValueStr_]: attributes.md#meta-item-attribute-syntax
8989
[`static` items]: items/static-items.md
9090
[attribute]: attributes.md
91-
[extern functions]: items/functions.md#extern-functions
91+
[extern functions]: items/functions.md#extern-function-qualifier
9292
[external blocks]: items/external-blocks.md
9393
[function]: items/functions.md
9494
[item]: items.md

src/items/external-blocks.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ current crate and are the basis of Rust's foreign function interface. Using
3434
items declared in external blocks is `unsafe`.
3535

3636
Two kind of item _declarations_ are allowed in external blocks:
37-
[functions](function.md) and [statics](static-items.md).
37+
[functions] and [statics].
3838

3939
Functions within external blocks are declared in the same way as other Rust
4040
functions, with the exception that they may not have a body and are instead
@@ -170,6 +170,8 @@ extern {
170170

171171
[IDENTIFIER]: ../identifiers.md
172172
[WebAssembly module]: https://webassembly.github.io/spec/core/syntax/modules.html
173+
[functions]: functions.md
174+
[statics]: static-items.md
173175
[_Abi_]: functions.md
174176
[_FunctionReturnType_]: functions.md
175177
[_Generics_]: generics.md

src/items/functions.md

+8-7
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,10 @@ with such ABIs causes the process to abort.
176176
aborts the process by executing an illegal instruction.
177177

178178
**Non-normative note**: There are other ABIs available in unstable Rust that are
179-
equivalent to the `"Rust"` ABI, e.g.,
180-
[`"rust-intrinsic"`](https://doc.rust-lang.org/unstable-book/language-features/intrinsics.html?highlight=rust-intrin#intrinsics)
181-
or
182-
[`"platform-intrinsic"`](https://doc.rust-lang.org/unstable-book/language-features/platform-intrinsics.html).
183-
For more information about these refer to the [ABI section of external block
184-
items][external-blocks.md#ABI] and the [Unstable
185-
Book](https://doc.rust-lang.org/unstable-book).
179+
equivalent to the `"Rust"` ABI, e.g., [`"rust-intrinsic"`][rust_intrinsic] or
180+
[`"platform-intrinsic"`][platform_intrinsic]. For more information about these
181+
refer to the [ABI section of external block items][external_block_abi] and the
182+
[Unstable Book].
186183

187184
## Const functions
188185

@@ -290,3 +287,7 @@ attributes macros.
290287
[`export_name`]: ../abi.md#the-export_name-attribute
291288
[`link_section`]: ../abi.md#the-link_section-attribute
292289
[`no_mangle`]: ../abi.md#the-no_mangle-attribute
290+
[external_block_abi]: external-blocks.md#abi
291+
[Unstable Book]: https://doc.rust-lang.org/unstable-book
292+
[rust_intrinsic]: https://doc.rust-lang.org/unstable-book/language-features/intrinsics.html?highlight=rust-intrin#intrinsics
293+
[platform_intrinsic]: https://doc.rust-lang.org/unstable-book/language-features/platform-intrinsics.html

src/types/function-pointer.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ x = bo(5,7);
5151
[_Type_]: ../types.md#type-expressions
5252
[`extern`]: ../items/external-blocks.md
5353
[closures]: closure.md
54-
[extern function]: ../items/functions.md#extern-functions
54+
[extern function]: ../items/functions.md#extern-function-qualifier
5555
[function items]: function-item.md
5656
[unsafe function]: ../unsafe-functions.md

0 commit comments

Comments
 (0)