| Age | Commit message (Collapse) | Author | Lines |
|
Transplant the relevant changes (turns out to be all of them) to `grammar.md`, and remove all grammar talk from `reference.md`. Sorry for the chaos.
The second commit, further below, goes over the comments and whitespace sections.
r? @steveklabnik
|
|
At https://doc.rust-lang.org/book/vectors.html, there should be a link to
Generics page but the link address is ommitted and thus link is not functioning
well. So I added a link definition to the vectors.md.
r? @steveklabnik
|
|
|
|
Transplant the grammar-related changes to grammar.md,
and remove all grammar talk from reference.md
|
|
At https://doc.rust-lang.org/book/vectors.html, there should be a link to
Generics page but the link address is ommitted and thus link is not functioning
well. So I added a link definition to the vectors.md.
r? @steveklabnik
|
|
Conflicts:
src/doc/trpl/variable-bindings.md
|
|
Mention `non_ascii_idents` feature gate and remove unused productions.
r? @steveklabnik
|
|
The reference has broken links. This should fix it.
|
|
|
|
|
|
The description of the syntax for single byte literals is missing the preceding `b` distinction.
|
|
Mention non_ascii_idents feature gate and remove unused productions
|
|
|
|
Changes the style guidelines regarding unit tests to recommend using a sub-module named "tests" instead of "test" for unit tests as "test" might clash with imports of libtest (see #23870, #24030 and http://users.rust-lang.org/t/guidelines-naming-of-unit-test-module/1078 for previous discussions).
r? @alexcrichton
|
|
|
|
The description of the syntax for single byte literals is missing the preceding `b` distinction.
|
|
|
|
Update 7.2.20 (`for` expressions):
* `for` loops now use `IntoIterator` instead of just `Iterator`
* Simplify the example by removing unnecessary `Vec::iter` call.
...and a fix for a minor formatting error.
r? @steveklabnik
|
|
Changed in #22838.
audited (raw) byte string literals @ #16676
|
|
Okay, last chapter other than ownership stuff. :confetti_ball:
|
|
From https://github.com/rust-lang/rust/issues/24723#issuecomment-95636827 :
> Yes, I've been meaning to just remove it in favor of GRAMMAR.md
> - steveklabnik
|
|
r=alexcrichton
I forgot these heavily use associated types, so move it after that
as well.
|
|
r? @alexcrichton
|
|
|
|
|
|
I forgot these heavily use associated types, so move it after that
as well.
|
|
Changes the style guidelines regarding unit tests to recommend using a
sub-module named "tests" instead of "test" for unit tests as "test"
might clash with imports of libtest.
|
|
|
|
|
|
|
|
* `for` loops now use `IntoIterator` instead of just `Iterator`
* Simplify the example by removing unnecessary `Vec::iter` call.
|
|
|
|
Audit & Edit Chapter 8.1 Types in reference manual
- Remove mention of unit type
- Update closure types and reference types sections
- Fix minor typos
|
|
- Remove mention of unit type
- Update closure types and reference types sections
- Fix minor typos
|
|
It was in pretty good shape, but since that is my pet peeve, I clarified the compiler/interpreter distinction and why it is irrelevant for this section. Otherwise only a couple of minor clarifications, and weasel words where reality is more complicated than the text accounted for (e.g., there is more than one kind of library).
r? @steveklabnik
|
|
`us` and `is` were replaced with `usize` and `isize` some time ago. Other than that, 3.5.2.1.5 is correct.
|
|
this is too small for its own thing, I think.
|
|
Changed in #22838.
audited (raw) byte string literals @ #16676
|
|
|
|
|
|
Add section for range expressions.
|
|
Updated sample code to updated syntax (now compiles). Also tweaked the text to reflect the change.
|
|
1) Moved 'while' section below 'loop', 'break', and 'continue'; 2) Added information to 'while' and 'for' loops that they interact with 'break' and 'continue' and may have a lifetime label. 3) Clarified labeling syntax on the infinite loops.
|
|
r? @steveklabnik
|
|
* Add two missing keywords, `Self` and `proc`
* Fix some mis-alphabetized keywords
r? @steveklabnik
|
|
r? @steveklabnik
|
|
'win32' -> 'windows', added 'ios'
|
|
|
|
Add section for range expressions.
|
|
Updated sample code to updated syntax (now compiles). Also tweaked the text to reflect the change.
|