Skip to content

Commit

Permalink
Auto merge of rust-lang#25771 - killercup:trpl/cleanup-markdown-links…
Browse files Browse the repository at this point in the history
…, 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
  • Loading branch information
bors committed May 25, 2015
2 parents 1d00028 + 6bb56b4 commit cc156c2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions src/doc/trpl/installing-rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ Some people, and somewhat rightfully so, get very upset when we tell you to
`curl | sh`. Basically, when you do this, you are trusting that the good
people who maintain Rust aren't going to hack your computer and do bad things.
That's a good instinct! If you're one of those people, please check out the
documentation on [building Rust from Source][from source], or [the official
binary downloads][install page].
documentation on [building Rust from Source][from-source], or [the official
binary downloads][install-page].

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

Oh, we should also mention the officially supported platforms:

Expand Down
8 changes: 4 additions & 4 deletions src/doc/trpl/macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ mind.

# Defining a macro

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

[vector]: vectors.html

Expand Down Expand Up @@ -349,7 +349,7 @@ fn main() {
}
```

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

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

Expand Down
12 changes: 6 additions & 6 deletions src/doc/trpl/nightly-rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ Some people, and somewhat rightfully so, get very upset when we tell you to
`curl | sh`. Basically, when you do this, you are trusting that the good
people who maintain Rust aren't going to hack your computer and do bad things.
That's a good instinct! If you're one of those people, please check out the
documentation on [building Rust from Source][from source], or [the official
binary downloads][install page].
documentation on [building Rust from Source][from-source], or [the official
binary downloads][install-page].

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

Oh, we should also mention the officially supported platforms:

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

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

0 comments on commit cc156c2

Please sign in to comment.