Nick Hamann
7434e6c2cb
Fix link to RFC 255 in Reference.
2017-03-02 14:57:17 -08:00
Steve Klabnik
a4d39e9ded
Fix test failure in the reference
2017-03-02 14:57:17 -08:00
Nick Hamann
61ed600b1b
Improve wording for the "Trait objects" section of the reference.
2017-03-02 14:57:17 -08:00
Nick Hamann
166fbb4c16
Expand the "Traits" section of the reference.
2017-03-02 14:57:16 -08:00
Niko Matsakis
53d59542aa
Correct various small points, expand some sections, while avoiding
...
too much detail.
2017-03-02 14:57:16 -08:00
Steve Klabnik
eb9dab574d
Fix links in the referece
...
and remove references to the unit type, which no longer exists
Fixes #24999
2017-03-02 14:57:16 -08:00
Jan-Erik Rediger
f13217f009
Remove extra parentheses
2017-03-02 14:57:16 -08:00
Johann
8e3670c134
Four spaces indent, rephrasing
2017-03-02 14:57:16 -08:00
Johann Hofmann
24ca057015
Add if let expressions example
2017-03-02 14:57:15 -08:00
Ulrik Sverdrup
4f6b131e1c
docs: Fixes in Reference Chapter 6.1
2017-03-02 14:57:15 -08:00
Johann Hofmann
ae8b18ddc5
Docs: Compile-time bounds check in index expression
...
The reference was claiming all vectors all bounds-checked at run-time, when constant vectors are usually checked at compile-time.
For the changed example see http://is.gd/28ak9E
2017-03-02 14:57:15 -08:00
Nick Hamann
0d5a2e50e1
Convert #[lang=".."] to #[lang = ".."] for docs too.
2017-03-02 14:57:15 -08:00
Barosl Lee
ef8cc7299d
Squeeze the last bits of `task`s in documentation in favor of `thread`
...
An automated script was run against the `.rs` and `.md` files,
subsituting every occurrence of `task` with `thread`. In the `.rs`
files, only the texts in the comment blocks were affected.
2017-03-02 14:57:15 -08:00
Carol Nichols
6d9ab4ae05
Remove references to deprecated `extern crate "foo" as bar` syntax
...
This syntax was removed in b24a3b8 but references remained in the
grammar, the reference, rustdoc generation, and some auxiliary test
files that don't seem to have been used since 812637e.
2017-03-02 14:57:15 -08:00
Johannes Oertel
7a6e1fb148
Update "Miscellaneous attributes" section of reference manual
2017-03-02 14:57:15 -08:00
Jake Goulding
b92660ba67
Clean up the grammar around the inline attribute
2017-03-02 14:57:14 -08:00
Steve Klabnik
92bf93e245
Describe (a,) vs (a) in docs
...
Fixes #24730
2017-03-02 14:57:14 -08:00
Carol Nichols
bb7b180627
Remove lingering mention of 'priv' in the reference
2017-03-02 14:57:14 -08:00
Carol Nichols
6a8b90ed4a
Move explanation that references lexical grammar to the grammar
...
Reword so that the references to things above/below are up to date and a
bit more specific.
2017-03-02 14:57:14 -08:00
Matt Brubeck
b04f557b3f
[reference] Fix a typo in 3.4 Whitespace
2017-03-02 14:57:14 -08:00
Tshepang Lekhonkhobe
512bf39278
reference: add missing bracket
...
Also, remove the other brackets, because they make the whole sentence
look awkward.
2017-03-02 14:57:14 -08:00
Sean Patrick Santos
78d2dfac97
Feature-gate associated constants.
2017-03-02 14:57:14 -08:00
Tshepang Lekhonkhobe
e7f1c0dd85
reference: block-comment -> block comment
2017-03-02 14:57:14 -08:00
Diggory Hardy
ffeae7dc3d
Update reference.md: floating-point section
...
Clarify type inference of floating-point literals
2017-03-02 14:57:14 -08:00
Diggory Hardy
03a4b75498
Update reference.md: string literals section
...
Remove the name "multi-line string literal" since the rule appears to affect each line-break individually rather than the whole string literal. Re-word, and remove the stray reference to raw strings.
2017-03-02 14:57:13 -08:00
Robin Kruppe
a62b8104e6
Reference audit: comments and whitespace sections
2017-03-02 14:57:13 -08:00
Robin Kruppe
bd64eef046
Redo PR #24811 properly
...
Transplant the grammar-related changes to grammar.md,
and remove all grammar talk from reference.md
2017-03-02 14:57:13 -08:00
Robin Kruppe
f98c486aeb
Audit reference manual: 3.2 Special unicode productions
...
Mention non_ascii_idents feature gate and remove unused productions
2017-03-02 14:57:13 -08:00
Conrad Kleinespel
8e643c69d4
fix compiler plugins path in doc/reference.md
2017-03-02 14:57:13 -08:00
Skyler
56d52c463d
Reference manual 3.5.2.3.1
...
The description of the syntax for single byte literals is missing the preceding `b` distinction.
2017-03-02 14:57:13 -08:00
Michael Rosenberg
b30e9ce67f
More small syntax changes in reference.md
2017-03-02 14:57:13 -08:00
Matt Brubeck
301d6db9a3
[reference] Update 7.2.20: For expressions.
...
* `for` loops now use `IntoIterator` instead of just `Iterator`
* Simplify the example by removing unnecessary `Vec::iter` call.
2017-03-02 14:57:13 -08:00
Matt Brubeck
e7bc1786dc
[reference] Fix missing formatting.
2017-03-02 14:57:12 -08:00
nwin
2f28e83e53
Byte string literals are now fixed-size arrays
...
Changed in #22838 .
audited (raw) byte string literals @ #16676
2017-03-02 14:57:12 -08:00
mdinger
94676f0ac8
Remove keywords from reference because they're already in grammar
2017-03-02 14:57:12 -08:00
mdinger
272cc7a339
Remove ebnf from reference
2017-03-02 14:57:12 -08:00
Ulrik Sverdrup
e8acbdbca2
reference: Audit & Edit chapter 8.1 Types.
...
- Remove mention of unit type
- Update closure types and reference types sections
- Fix minor typos
2017-03-02 14:57:12 -08:00
Robin Kruppe
5f6aedd176
Reference audit: section 5 (Crates and source files)
2017-03-02 14:57:12 -08:00
Andrzej Janik
881a40e616
Stop mentioning obsolete integer suffixes
...
`us` and `is` were replaced with `usize` and `isize` some time ago.
2017-03-02 14:57:12 -08:00
Manish Goregaokar
438affd543
fixup #24754
2017-03-02 14:57:12 -08:00
Mike Boutin
475ab5d493
Fix spelling errors.
2017-03-02 14:57:12 -08:00
tynopex
97d9ce4546
Update reference.md
...
Add section for range expressions.
2017-03-02 14:57:11 -08:00
Michael Rosenberg
fe3d8aa671
Update "Generic Functions" section
...
Updated sample code to updated syntax (now compiles). Also tweaked the text to reflect the change.
2017-03-02 14:57:11 -08:00
Lee Aronson
60dc8907aa
Fixed typo
2017-03-02 14:57:11 -08:00
Lee Aronson
8fbde72c92
Improve information about loops
...
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.
2017-03-02 14:57:11 -08:00
Matt Brubeck
2e669fcafd
Update and organize the Keywords table
...
* Add two missing keywords, `Self` and `proc`
* Fix some mis-alphabetized keywords
2017-03-02 14:57:11 -08:00
Matt Brubeck
1dc339f0e0
Also mention `/*!` doc comments.
2017-03-02 14:57:11 -08:00
Matt Brubeck
dc6735628e
Clarify that //! comments are also doc comments.
2017-03-02 14:57:11 -08:00
Vadim Chugunov
bcae34866e
Update supported values of target_os
...
'win32' -> 'windows', added 'ios'
2017-03-02 14:57:11 -08:00
nwin
0f1aa23ff8
typo 2
2017-03-02 14:57:11 -08:00