Skip to content

Commit 18d7140

Browse files
committed
Add links to statics chapter
1 parent 53d0cec commit 18d7140

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/items/external-blocks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ parameters and `R` is the declared return type.
5757

5858
## Statics
5959

60-
Statics within external blocks are declared in the same way as statics outside of external blocks,
60+
Statics within external blocks are declared in the same way as [statics] outside of external blocks,
6161
except that they do not have an expression initializing their value.
6262
It is `unsafe` to access a static item declared in an extern block, whether or
6363
not it's mutable, because there is nothing guaranteeing that the bit pattern at the static's
6464
memory is valid for the type it is declared with, since some arbitrary (e.g. C) code is in charge
6565
of initializing the static.
6666

67-
Extern statics can be either immutable or mutable just like statics outside of external blocks.
67+
Extern statics can be either immutable or mutable just like [statics] outside of external blocks.
6868
An immutable static *must* be initialized before any Rust code is executed. It is not enough for
6969
the static to be initialized before Rust code reads from it.
7070

0 commit comments

Comments
 (0)