Skip to content

Commit cc156c2

Browse files
committed
Auto merge of #25771 - killercup:trpl/cleanup-markdown-links, r=steveklabnik
In all other places the IDs of link references are without spaces (and explicitly set). These are just some cleanups I did for the PDF version. r? @steveklabnik
2 parents 1d00028 + 6bb56b4 commit cc156c2

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

src/doc/trpl/installing-rust.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ Some people, and somewhat rightfully so, get very upset when we tell you to
4343
`curl | sh`. Basically, when you do this, you are trusting that the good
4444
people who maintain Rust aren't going to hack your computer and do bad things.
4545
That's a good instinct! If you're one of those people, please check out the
46-
documentation on [building Rust from Source][from source], or [the official
47-
binary downloads][install page].
46+
documentation on [building Rust from Source][from-source], or [the official
47+
binary downloads][install-page].
4848

49-
[from source]: https://github.com/rust-lang/rust#building-from-source
50-
[install page]: http://www.rust-lang.org/install.html
49+
[from-source]: https://github.com/rust-lang/rust#building-from-source
50+
[install-page]: http://www.rust-lang.org/install.html
5151

5252
Oh, we should also mention the officially supported platforms:
5353

src/doc/trpl/macros.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ mind.
3030

3131
# Defining a macro
3232

33-
You may have seen the `vec!` macro, used to initialize a [vector][] with any
34-
number of elements.
33+
You may have seen the `vec!` macro, used to initialize a [vector][vector] with
34+
any number of elements.
3535

3636
[vector]: vectors.html
3737

@@ -349,7 +349,7 @@ fn main() {
349349
}
350350
```
351351

352-
This holds for `let` bindings and loop labels, but not for [items][].
352+
This holds for `let` bindings and loop labels, but not for [items][items].
353353
So the following code does compile:
354354

355355
```rust
@@ -470,7 +470,7 @@ which syntactic form it matches.
470470
* `stmt`: a single statement. Example: `let x = 3`.
471471
* `block`: a brace-delimited sequence of statements. Example:
472472
`{ log(error, "hi"); return 12; }`.
473-
* `item`: an [item][]. Examples: `fn foo() { }`; `struct Bar;`.
473+
* `item`: an [item][item]. Examples: `fn foo() { }`; `struct Bar;`.
474474
* `meta`: a "meta item", as found in attributes. Example: `cfg(target_os = "windows")`.
475475
* `tt`: a single token tree.
476476

src/doc/trpl/nightly-rust.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ Some people, and somewhat rightfully so, get very upset when we tell you to
4646
`curl | sh`. Basically, when you do this, you are trusting that the good
4747
people who maintain Rust aren't going to hack your computer and do bad things.
4848
That's a good instinct! If you're one of those people, please check out the
49-
documentation on [building Rust from Source][from source], or [the official
50-
binary downloads][install page].
49+
documentation on [building Rust from Source][from-source], or [the official
50+
binary downloads][install-page].
5151

52-
[from source]: https://github.com/rust-lang/rust#building-from-source
53-
[install page]: http://www.rust-lang.org/install.html
52+
[from-source]: https://github.com/rust-lang/rust#building-from-source
53+
[install-page]: http://www.rust-lang.org/install.html
5454

5555
Oh, we should also mention the officially supported platforms:
5656

@@ -91,9 +91,9 @@ If not, there are a number of places where you can get help. The easiest is
9191
[the #rust IRC channel on irc.mozilla.org][irc], which you can access through
9292
[Mibbit][mibbit]. Click that link, and you'll be chatting with other Rustaceans
9393
(a silly nickname we call ourselves), and we can help you out. Other great
94-
resources include [the user’s forum][users], and [Stack Overflow][stack overflow].
94+
resources include [the user’s forum][users], and [Stack Overflow][stackoverflow].
9595

9696
[irc]: irc://irc.mozilla.org/#rust
9797
[mibbit]: http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust
9898
[users]: http://users.rust-lang.org/
99-
[stack overflow]: http://stackoverflow.com/questions/tagged/rust
99+
[stackoverflow]: http://stackoverflow.com/questions/tagged/rust

0 commit comments

Comments
 (0)