Skip to content

Commit 6faa8d6

Browse files
committed
Add a link to the error index to the main doc page.
I also capitalised "The Standard Library" and neatened a few bits of grammar. Also fixed: `#[main]` inside one of the error descriptions.
1 parent f2e1a1b commit 6faa8d6

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

src/doc/index.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ series of small examples.
2424
# Community & Getting Help
2525

2626
If you need help with something, or just want to talk about Rust with others,
27-
there's a few places you can do that:
27+
there are a few places you can do that:
2828

2929
The Rust IRC channels on [irc.mozilla.org](http://irc.mozilla.org/) are the
3030
fastest way to get help.
@@ -59,7 +59,7 @@ the language in as much detail as possible is in [the reference](reference.html)
5959

6060
# Tools
6161

62-
Rust's still a young language, so there isn't a ton of tooling yet, but the
62+
Rust is still a young language, so there isn't a ton of tooling yet, but the
6363
tools we have are really nice.
6464

6565
[Cargo](http://crates.io) is Rust's package manager, and its website contains
@@ -69,16 +69,21 @@ lots of good documentation.
6969

7070
# FAQs
7171

72-
There are questions that are asked quite often, and so we've made FAQs for them:
72+
There are questions that are asked quite often, so we've made FAQs for them:
7373

7474
* [Language Design FAQ](complement-design-faq.html)
7575
* [Language FAQ](complement-lang-faq.html)
7676
* [Project FAQ](complement-project-faq.html)
7777
* [How to submit a bug report](https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports)
7878

79-
# The standard library
79+
# The Standard Library
8080

8181
We have [API documentation for the entire standard
8282
library](std/index.html). There's a list of crates on the left with more
8383
specific sections, or you can use the search bar at the top to search for
8484
something if you know its name.
85+
86+
# The Error Index
87+
88+
If you encounter an error while compiling your code you may be able to look it
89+
up in the [Rust Compiler Error Index](error-index.html).

src/librustc/diagnostics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,8 @@ See also http://doc.rust-lang.org/book/unsafe.html
273273

274274
E0137: r##"
275275
This error indicates that the compiler found multiple functions with the
276-
#[main] attribute. This is an error because there must be a unique entry point
277-
into a Rust program.
276+
`#[main]` attribute. This is an error because there must be a unique entry
277+
point into a Rust program.
278278
"##,
279279

280280
E0152: r##"

0 commit comments

Comments
 (0)