| Age | Commit message (Collapse) | Author | Lines |
|
The book was located under 'src/doc/trpl' because originally, it was
going to be hosted under that URL. Late in the game, before 1.0, we
decided that /book was a better one, so we changed the output, but
not the input. This causes confusion for no good reason. So we'll change
the source directory to look like the output directory, like for every
other thing in src/doc.
|
|
Originally, this was my 30 minute introduction, and we eventually made
it the opener to the book. But as #25918 has shown, the example I use
here has some issues. The good news is that Rust makes heap allocation
syntatically expensive, but the bad news is that that means showing
equivalent programs from Rust and other languages is difficult. After
thinking about it, I'm not sure this section is pulling its weight, and
since it has problems, I'd rather just pull it than try to re-write it
right now. I think the book is fine without it.
FIxes #25918
|
|
https://github.com/rust-lang/rust/pull/27813#issuecomment-146842041
|
|
Improving the use of 2nd and 3rd person
Adding a few contractions to make the text less formal
Tidying up some notes
Providing a little bit more clarification for Windows users
|
|
Replacing all references to the 2nd person with references to the 3rd
person (excluding `authors = [ "Your name <you@example.com>" ]` and
`file:///home/yourname/projects/hello_world` in `hello-cargo.md`)
|
|
|
|
|
|
Also fixes a few outdated links.
|
|
|
|
Earlier created vector `["Hello", "world"]` has two elements and we try to add a third element.
|
|
|
|
- I found n error in the book, before contributing the patch to fix it, I had to find where they were hosted
- It took me quite look to find where within the rust-lang *organisation* it was!
|
|
Correct 'danging' to 'dangling'.
|
|
The error in the Brief Introduction shows the problematic line as "x.push(4)", while the example code uses a vector of strings.
|
|
|
|
This section was added but the list wasn't updated.
|
|
|
|
|
|
|
|
Correct mistyped comma, and slightly improve sentence.
|
|
|
|
|
|
Now that feature flags are only on nightly, it's good to split this stuff out.
|
|
Fixes #20852
|
|
Fix typo in documentation.
Reviewed-by: sfackler
|
|
|
|
|
|
This pulls all of our long-form documentation into a single document,
nicknamed "the book" and formally titled "The Rust Programming
Language."
A few things motivated this change:
* People knew of The Guide, but not the individual Guides. This merges
them together, helping discoverability.
* You can get all of Rust's longform documentation in one place, which
is nice.
* We now have rustbook in-tree, which can generate this kind of
documentation. While its style is basic, the general idea is much
better: a table of contents on the left-hand side.
* Rather than a almost 10,000-line guide.md, there are now smaller files
per section.
|