Skip to content

Commit b9a3735

Browse files
committed
Add unsafe contexts cross-link in extern blocks chapter
Co-authored-by: ehuss
1 parent 6b197e9 commit b9a3735

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/items/external-blocks.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Two kinds of item _declarations_ are allowed in external blocks: [functions] and
2929
[statics].
3030

3131
r[items.extern.safety]
32-
Calling unsafe functions or accessing unsafe statics that are declared in external blocks is only allowed in an `unsafe` context.
32+
Calling unsafe functions or accessing unsafe statics that are declared in external blocks is only allowed in an [`unsafe` context].
3333

3434
r[items.extern.namespace]
3535
The external block defines its functions and statics in the [value namespace] of the module or block where it is located.
@@ -465,6 +465,7 @@ restrictions as [regular function parameters].
465465
[WebAssembly module]: https://webassembly.github.io/spec/core/syntax/modules.html
466466
[`bundle` documentation for rustc]: ../../rustc/command-line-arguments.html#linking-modifiers-bundle
467467
[`dylib` versus `raw-dylib`]: #dylib-versus-raw-dylib
468+
[`unsafe` context]: ../unsafe-keyword.md
468469
[`verbatim` documentation for rustc]: ../../rustc/command-line-arguments.html#linking-modifiers-verbatim
469470
[`whole-archive` documentation for rustc]: ../../rustc/command-line-arguments.html#linking-modifiers-whole-archive
470471
[attributes]: ../attributes.md

0 commit comments

Comments
 (0)