From dd637f8e60c49167a9eab94380ad106c5854ff14 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Tue, 16 Jul 2019 15:47:07 -0700 Subject: [PATCH] Fix some links. A few that have slipped through the cracks. --- src/expressions/struct-expr.md | 2 +- src/items/modules.md | 4 ++-- src/linkage.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/expressions/struct-expr.md b/src/expressions/struct-expr.md index d281be6d21809..baeba7b8ac90b 100644 --- a/src/expressions/struct-expr.md +++ b/src/expressions/struct-expr.md @@ -150,7 +150,7 @@ expressions]. [if]: if-expr.md#if-expressions [loop]: loop-expr.md [match]: match-expr.md -[parentheses]: http://localhost:3000/expressions/grouped-expr.html +[parentheses]: grouped-expr.md [struct]: ../items/structs.md [union]: ../items/unions.md [visible]: ../visibility-and-privacy.md diff --git a/src/items/modules.md b/src/items/modules.md index 52331ebc1adf8..5c9eac314c158 100644 --- a/src/items/modules.md +++ b/src/items/modules.md @@ -123,7 +123,7 @@ mod thread { ## Prelude Items Modules implicitly have some names in scope. These name are to built-in types, -macros imported with [`#[macro_use]`] on an extern crate, and by the crate's +macros imported with [`#[macro_use]`][macro_use] on an extern crate, and by the crate's [prelude]. These names are all made of a single identifier. These names are not part of the module, so for example, any name `name`, `self::name` is not a valid path. The names added by the [prelude] can be removed by placing the @@ -141,7 +141,7 @@ The built-in attributes that have meaning on a function are [`cfg`], [_InnerAttribute_]: ../attributes.md [_Item_]: ../items.md -[`#[macro_use]`]: macros-by-example.html#the-macro_use-attribute +[macro_use]: ../macros-by-example.md#the-macro_use-attribute [`cfg`]: ../conditional-compilation.md [`deprecated`]: ../attributes/diagnostics.md#the-deprecated-attribute [`doc`]: ../../rustdoc/the-doc-attribute.html diff --git a/src/linkage.md b/src/linkage.md index 109973f34b352..61a24f2a27413 100644 --- a/src/linkage.md +++ b/src/linkage.md @@ -200,7 +200,7 @@ fn main() { } ``` -[cargo]: http://doc.crates.io/environment-variables.html#environment-variables-cargo-sets-for-build-scripts +[cargo]: ../cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-build-scripts To use this feature locally, you typically will use the `RUSTFLAGS` environment variable to specify flags to the compiler through Cargo. For example to compile