Skip to content

Fix broken links in the book. #24998

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 1, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/doc/trpl/attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 3 additions & 5 deletions src/doc/trpl/const-and-static.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,16 @@ this reason.
# `static`

Rust provides a ‘global variable’ sort of facility in static items. They’re
similar to [constants][const], but static items aren’t inlined upon use. This
means that there is only one instance for each value, and it’s at a fixed
location in memory.
similar to constants, but static items aren’t inlined upon use. This means that
there is only one instance for each value, and it’s at a fixed location in
memory.

Here’s an example:

```rust
static N: i32 = 5;
```

[const]: const.html

Unlike [`let`][let] bindings, you must annotate the type of a `static`.

[let]: variable-bindings.html
Expand Down
2 changes: 1 addition & 1 deletion src/doc/trpl/raw-pointers.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Raw pointers are useful for FFI: Rust’s `*const T` and `*mut T` are similar to
C’s `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

Expand Down
2 changes: 1 addition & 1 deletion src/doc/trpl/unsafe.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down