Rollup merge of #24998 - steveklabnik:fix_links, r=alexcrichton

r? @alexcrichton
This commit is contained in:
Manish Goregaokar 2015-05-01 11:12:17 +05:30
commit 4aab003b60
4 changed files with 6 additions and 8 deletions

View File

@ -67,4 +67,4 @@ Rust attributes are used for a number of different things. There is a full list
of attributes [in the reference][reference]. Currently, you are not allowed to
create your own attributes, the Rust compiler defines them.
[reference]: reference.html#attributes
[reference]: ../reference.html#attributes

View File

@ -19,9 +19,9 @@ this reason.
# `static`
Rust provides a global variable sort of facility in static items. Theyre
similar to [constants][const], but static items arent inlined upon use. This
means that there is only one instance for each value, and its at a fixed
location in memory.
similar to constants, but static items arent inlined upon use. This means that
there is only one instance for each value, and its at a fixed location in
memory.
Heres an example:
@ -29,8 +29,6 @@ Heres an example:
static N: i32 = 5;
```
[const]: const.html
Unlike [`let`][let] bindings, you must annotate the type of a `static`.
[let]: variable-bindings.html

View File

@ -80,7 +80,7 @@ Raw pointers are useful for FFI: Rusts `*const T` and `*mut T` are similar to
Cs `const T*` and `T*`, respectfully. For more about this use, consult the
[FFI chapter][ffi].
[ffi]: ffi.md
[ffi]: ffi.html
# References and raw pointers

View File

@ -101,7 +101,7 @@ Rust has a feature called `static mut` which allows for mutable global sta
Doing so can cause a data race, and as such is inherently not safe. For more
details, see the [static][static] section of the book.
[static]: static.html
[static]: const-and-static.html#static
## Dereference a raw pointer