]> git.lizzy.rs Git - rust.git/commitdiff
Fix a few links in the book
authorOliver Middleton <olliemail27@gmail.com>
Wed, 1 Jun 2016 12:32:58 +0000 (13:32 +0100)
committerOliver Middleton <olliemail27@gmail.com>
Wed, 1 Jun 2016 15:53:14 +0000 (16:53 +0100)
Links to directories and direct links to doc.rust-lang.org don't work properly
when viewing the docs offline so fix them.

src/doc/book/choosing-your-guarantees.md
src/doc/book/documentation.md
src/doc/book/error-handling.md
src/doc/book/using-rust-without-the-standard-library.md
src/doc/book/vectors.md
src/doc/nomicon/README.md

index 50350213074bf3a2cd2368db61d0d7acce5c7a23..d88f619260ac0ca4d95a3edc5a6a12b63480991a 100644 (file)
@@ -232,7 +232,7 @@ indicator (one word in size) along with the data.
 
 At runtime each borrow causes a modification/check of the refcount.
 
-[cell-mod]: ../std/cell/
+[cell-mod]: ../std/cell/index.html
 [cell]: ../std/cell/struct.Cell.html
 [refcell]: ../std/cell/struct.RefCell.html
 
index 4a41bb7b7f37eee595870bb26f5680de4122587b..3c6643fbfe1554e0ae02c5bc551f0a04353715c2 100644 (file)
@@ -76,7 +76,7 @@ This [unfortunate error](https://github.com/rust-lang/rust/issues/22547) is
 correct; documentation comments apply to the thing after them, and there's
 nothing after that last comment.
 
-[rc-new]: https://doc.rust-lang.org/nightly/std/rc/struct.Rc.html#method.new
+[rc-new]: ../std/rc/struct.Rc.html#method.new
 
 ### Writing documentation comments
 
index c914c33a5a4b989e369e01489ff8aca199130c00..bca3418706771e08259946c1d36935a47345201c 100644 (file)
@@ -2205,7 +2205,7 @@ heuristics!
 [3]: ../std/option/enum.Option.html#method.unwrap_or
 [4]: ../std/option/enum.Option.html#method.unwrap_or_else
 [5]: ../std/option/enum.Option.html
-[6]: ../std/result/
+[6]: ../std/result/index.html
 [7]: ../std/result/enum.Result.html#method.unwrap
 [8]: ../std/fmt/trait.Debug.html
 [9]: ../std/primitive.str.html#method.parse
index 1179aebe54c552462099174392100468f29a1608..69958dd3e68a41c717527cc05347eb9d064705d1 100644 (file)
@@ -22,11 +22,12 @@ fn plus_one(x: i32) -> i32 {
 ```
 
 Much of the functionality that’s exposed in the standard library is also
-available via the [`core` crate](../core/). When we’re using the standard
-library, Rust automatically brings `std` into scope, allowing you to use
-its features without an explicit import. By the same token, when using
+available via the [`core` crate](../core/index.html). When we’re using the
+standard library, Rust automatically brings `std` into scope, allowing you to
+use its features without an explicit import. By the same token, when using
 `#![no_std]`, Rust will bring `core` into scope for you, as well as [its
-prelude](../core/prelude/v1/). This means that a lot of code will Just Work:
+prelude](../core/prelude/v1/index.html). This means that a lot of code will Just
+Work:
 
 ```rust
 #![no_std]
index 1c44af2f21a7198db6ff597fca3bec4188a27b85..f3854b8ffddce4598749fca9625996f11b03d21d 100644 (file)
@@ -152,5 +152,5 @@ API documentation][vec].
 [box]: ../std/boxed/index.html
 [generic]: generics.html
 [panic]: concurrency.html#panics
-[get]: http://doc.rust-lang.org/std/vec/struct.Vec.html#method.get
-[get_mut]: http://doc.rust-lang.org/std/vec/struct.Vec.html#method.get_mut
+[get]: ../std/vec/struct.Vec.html#method.get
+[get_mut]: ../std/vec/struct.Vec.html#method.get_mut
index 4554652a17a2a40732f03e879a27bdc56e3a139e..b2e1eac5e0dccea7692c23a131faae5b288280d6 100644 (file)
@@ -35,4 +35,4 @@ exception-safety, pointer aliasing, memory models, and even some type-theory.
 We will also be spending a lot of time talking about the different kinds
 of safety and guarantees.
 
-[trpl]: ../book/
+[trpl]: ../book/index.html