diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-04-30 16:00:44 -0400 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-04-30 16:00:44 -0400 |
| commit | 585c7e2a0acc0fb99790764364ba9aa5c7ad41c2 (patch) | |
| tree | 0d7a608a3025381dc0df1fa33176cbb82728a9e8 | |
| parent | 2f613bfaeb81ce25b116835a5f09750384b888c7 (diff) | |
| download | rust-585c7e2a0acc0fb99790764364ba9aa5c7ad41c2.tar.gz rust-585c7e2a0acc0fb99790764364ba9aa5c7ad41c2.zip | |
Fix broken links in the book.
| -rw-r--r-- | src/doc/trpl/attributes.md | 2 | ||||
| -rw-r--r-- | src/doc/trpl/const-and-static.md | 8 | ||||
| -rw-r--r-- | src/doc/trpl/raw-pointers.md | 2 | ||||
| -rw-r--r-- | src/doc/trpl/unsafe.md | 2 |
4 files changed, 6 insertions, 8 deletions
diff --git a/src/doc/trpl/attributes.md b/src/doc/trpl/attributes.md index 54195a5063b..63496471b5a 100644 --- a/src/doc/trpl/attributes.md +++ b/src/doc/trpl/attributes.md @@ -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 diff --git a/src/doc/trpl/const-and-static.md b/src/doc/trpl/const-and-static.md index 57cbb621396..be0c87319b3 100644 --- a/src/doc/trpl/const-and-static.md +++ b/src/doc/trpl/const-and-static.md @@ -19,9 +19,9 @@ 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: @@ -29,8 +29,6 @@ Here’s 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 diff --git a/src/doc/trpl/raw-pointers.md b/src/doc/trpl/raw-pointers.md index ab6ff18501e..4a37af3c227 100644 --- a/src/doc/trpl/raw-pointers.md +++ b/src/doc/trpl/raw-pointers.md @@ -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 diff --git a/src/doc/trpl/unsafe.md b/src/doc/trpl/unsafe.md index 7fe9a1fd27e..fdb9c33a2b0 100644 --- a/src/doc/trpl/unsafe.md +++ b/src/doc/trpl/unsafe.md @@ -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 |
