Skip to content

Commit

Permalink
Tidy links
Browse files Browse the repository at this point in the history
  • Loading branch information
gnzlbg committed Aug 15, 2019
1 parent 3d0237b commit 7f57f0e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
4 changes: 3 additions & 1 deletion src/items/external-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ current crate and are the basis of Rust's foreign function interface. Using
items declared in external blocks is `unsafe`.

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

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

[IDENTIFIER]: ../identifiers.md
[WebAssembly module]: https://webassembly.github.io/spec/core/syntax/modules.html
[functions]: functions.md
[statics]: static-items.md
[_Abi_]: functions.md
[_FunctionReturnType_]: functions.md
[_Generics_]: generics.md
Expand Down
15 changes: 8 additions & 7 deletions src/items/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,10 @@ with such ABIs causes the process to abort.
aborts the process by executing an illegal instruction.

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

## Const functions

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

0 comments on commit 7f57f0e

Please sign in to comment.