diff --git a/first-edition/src/attributes.md b/first-edition/src/attributes.md index 103ec39aa..49ac9b2c4 100644 --- a/first-edition/src/attributes.md +++ b/first-edition/src/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/attributes.html +[reference]: ../../reference/attributes.html diff --git a/first-edition/src/deref-coercions.md b/first-edition/src/deref-coercions.md index 8552a7c8b..e62c50ac8 100644 --- a/first-edition/src/deref-coercions.md +++ b/first-edition/src/deref-coercions.md @@ -24,7 +24,7 @@ fn main() { } ``` -[deref]: ../std/ops/trait.Deref.html +[deref]: ../../std/ops/trait.Deref.html This is useful for writing custom pointer types. However, there’s a language feature related to `Deref`: ‘deref coercions’. Here’s the rule: If you have a diff --git a/first-edition/src/documentation.md b/first-edition/src/documentation.md index 69d49e2f9..dbf5509aa 100644 --- a/first-edition/src/documentation.md +++ b/first-edition/src/documentation.md @@ -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]: ../std/rc/struct.Rc.html#method.new +[rc-new]: ../../std/rc/struct.Rc.html#method.new ### Writing documentation comments diff --git a/first-edition/src/drop.md b/first-edition/src/drop.md index 53c507eba..1d8c9a3af 100644 --- a/first-edition/src/drop.md +++ b/first-edition/src/drop.md @@ -4,7 +4,7 @@ Now that we’ve discussed traits, let’s talk about a particular trait provide by the Rust standard library, [`Drop`][drop]. The `Drop` trait provides a way to run some code when a value goes out of scope. For example: -[drop]: ../std/ops/trait.Drop.html +[drop]: ../../std/ops/trait.Drop.html ```rust struct HasDrop; @@ -64,4 +64,4 @@ reference-counted type. When `Drop` is called, it will decrement the reference count, and if the total number of references is zero, will clean up the underlying value. -[arc]: ../std/sync/struct.Arc.html +[arc]: ../../std/sync/struct.Arc.html