]> git.lizzy.rs Git - rust.git/commitdiff
Fix broken links in the book.
authorSteve Klabnik <steve@steveklabnik.com>
Thu, 30 Apr 2015 20:00:44 +0000 (16:00 -0400)
committerSteve Klabnik <steve@steveklabnik.com>
Thu, 30 Apr 2015 20:00:44 +0000 (16:00 -0400)
src/doc/trpl/attributes.md
src/doc/trpl/const-and-static.md
src/doc/trpl/raw-pointers.md
src/doc/trpl/unsafe.md

index 54195a5063b7c0b03c3817b59a351c2c7380973e..63496471b5a0141b2b900fe79e4ffa038d6488bb 100644 (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
index 57cbb6213963a9dff2fe4688912122767926c59b..be0c87319b37cb22c2cbac081bbcdeff2a90095f 100644 (file)
@@ -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
index ab6ff18501ed57253ae562890bc27c420300256f..4a37af3c227827f779157a1d2f44dcb54df03126 100644 (file)
@@ -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
 
index 7fe9a1fd27e8e9af544a8266b5af7b38c0d8951e..fdb9c33a2b0b5d7676c967eb4bf19c324b953f9b 100644 (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