Rollup merge of #34021 - ollie27:book_links_offline, r=steveklabnik
Fix a few links in the book Links to directories and direct links to doc.rust-lang.org don't work properly when viewing the docs offline so fix them. r? @steveklabnik
This commit is contained in:
commit
2c1da5b650
6 changed files with 11 additions and 10 deletions
|
@ -232,7 +232,7 @@ indicator (one word in size) along with the data.
|
||||||
|
|
||||||
At runtime each borrow causes a modification/check of the refcount.
|
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
|
[cell]: ../std/cell/struct.Cell.html
|
||||||
[refcell]: ../std/cell/struct.RefCell.html
|
[refcell]: ../std/cell/struct.RefCell.html
|
||||||
|
|
||||||
|
|
|
@ -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
|
correct; documentation comments apply to the thing after them, and there's
|
||||||
nothing after that last comment.
|
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
|
### Writing documentation comments
|
||||||
|
|
||||||
|
|
|
@ -2205,7 +2205,7 @@ heuristics!
|
||||||
[3]: ../std/option/enum.Option.html#method.unwrap_or
|
[3]: ../std/option/enum.Option.html#method.unwrap_or
|
||||||
[4]: ../std/option/enum.Option.html#method.unwrap_or_else
|
[4]: ../std/option/enum.Option.html#method.unwrap_or_else
|
||||||
[5]: ../std/option/enum.Option.html
|
[5]: ../std/option/enum.Option.html
|
||||||
[6]: ../std/result/
|
[6]: ../std/result/index.html
|
||||||
[7]: ../std/result/enum.Result.html#method.unwrap
|
[7]: ../std/result/enum.Result.html#method.unwrap
|
||||||
[8]: ../std/fmt/trait.Debug.html
|
[8]: ../std/fmt/trait.Debug.html
|
||||||
[9]: ../std/primitive.str.html#method.parse
|
[9]: ../std/primitive.str.html#method.parse
|
||||||
|
|
|
@ -22,11 +22,12 @@ fn plus_one(x: i32) -> i32 {
|
||||||
```
|
```
|
||||||
|
|
||||||
Much of the functionality that’s exposed in the standard library is also
|
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
|
available via the [`core` crate](../core/index.html). When we’re using the
|
||||||
library, Rust automatically brings `std` into scope, allowing you to use
|
standard library, Rust automatically brings `std` into scope, allowing you to
|
||||||
its features without an explicit import. By the same token, when using
|
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
|
`#![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
|
```rust
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
|
@ -152,5 +152,5 @@ API documentation][vec].
|
||||||
[box]: ../std/boxed/index.html
|
[box]: ../std/boxed/index.html
|
||||||
[generic]: generics.html
|
[generic]: generics.html
|
||||||
[panic]: concurrency.html#panics
|
[panic]: concurrency.html#panics
|
||||||
[get]: http://doc.rust-lang.org/std/vec/struct.Vec.html#method.get
|
[get]: ../std/vec/struct.Vec.html#method.get
|
||||||
[get_mut]: http://doc.rust-lang.org/std/vec/struct.Vec.html#method.get_mut
|
[get_mut]: ../std/vec/struct.Vec.html#method.get_mut
|
||||||
|
|
|
@ -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
|
We will also be spending a lot of time talking about the different kinds
|
||||||
of safety and guarantees.
|
of safety and guarantees.
|
||||||
|
|
||||||
[trpl]: ../book/
|
[trpl]: ../book/index.html
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue