Skip to content

Commit 7f57f0e

Browse files
committed
Tidy links
1 parent 3d0237b commit 7f57f0e

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

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

0 commit comments

Comments
 (0)