Steve Klabnik
0ad15bbc2b
TRPL: release channels
2015-05-12 15:09:17 -04:00
Steve Klabnik
28b923c477
Rollup merge of #25314 - steveklabnik:static_to_associated, r=alexcrichton
2015-05-11 23:24:20 -04:00
Steve Klabnik
f3849431a9
Rollup merge of #25304 - oli-obk:patch-2, r=steveklabnik
2015-05-11 23:24:20 -04:00
Steve Klabnik
425455b18e
Rollup merge of #25292 - steveklabnik:stack_and_heap, r=nikomatsakis
...
I think someday I'd like to make these drawings rather than text, but for now, this will have to be good enough.
2015-05-11 23:24:19 -04:00
Steve Klabnik
adf5b84394
Rollup merge of #25283 - steveklabnik:gh24999, r=alexcrichton
...
and remove references to the unit type, which no longer exists
Fixes #24999
2015-05-11 23:24:19 -04:00
Steve Klabnik
f8df5ea8a7
Rollup merge of #25282 - badboy:reference-macro-1, r=alexcrichton
...
As mentioned in https://github.com/rust-lang/rust/issues/16676#issuecomment-100676326 this makes it a little bit more correct.
I'm a bit unsure whether or not it should be explained that the transcriber can be wrapped in parentheses or curly braces if necessary.
2015-05-11 23:24:18 -04:00
Steve Klabnik
42240dccb6
static method -> associated function
2015-05-11 18:22:49 -04:00
Steve Klabnik
e66653bee5
TRPL: the stack and the heap
2015-05-11 16:18:12 -04:00
Steve Klabnik
dd7d0f5e9c
Fix links in the referece
...
and remove references to the unit type, which no longer exists
Fixes #24999
2015-05-11 12:49:17 -04:00
Oliver Schneider
7dd7bea3ac
trpl: item macros must be followed by a semicolon
2015-05-11 16:46:24 +02:00
Manish Goregaokar
2b0191e6d5
Rollup merge of #25297 - carols10cents:grammar-todos, r=steveklabnik
...
Hiiii, I've got another chunk of updates to the grammar documentation! ⭐ 🌟 🌠
Chipping away at #22445 , still have some more to go. I'm learning so much!!!
2015-05-11 19:58:58 +05:30
Manish Goregaokar
dec422541b
Rollup merge of #25291 - johannhof:let-expressions-example, r=steveklabnik
...
Maybe it's me, but I really needed an example to understand if let and refutable statements.
Playpen: http://is.gd/mjX3Gf
Let me know if the variable names are too, uh, culinary.
2015-05-11 19:58:57 +05:30
Manish Goregaokar
f2c2736cd8
Rollup merge of #25290 - bluss:docfixes, r=steveklabnik
...
Several Minor API / Reference Documentation Fixes
- Fix a few small errors in the reference.
- Fix paper cuts in the API docs.
Fixes #24882
Fixes #25233
Fixes #25250
2015-05-11 19:58:57 +05:30
Manish Goregaokar
8f01d8d7c2
Rollup merge of #25287 - petehunt:patch-2, r=steveklabnik
2015-05-11 19:58:57 +05:30
Manish Goregaokar
1b8f52bb69
Rollup merge of #25286 - johannhof:patch-1, r=steveklabnik
...
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
Also fixed a minor grammar issue.
2015-05-11 19:58:57 +05:30
Manish Goregaokar
b0b6db6cb3
Rollup merge of #25284 - petehunt:patch-1, r=steveklabnik
...
Noticed this while perusing the docs
2015-05-11 19:58:56 +05:30
bors
8004fc9fe0
Auto merge of #25277 - polachok:docfix, r=steveklabnik
...
r? @steveklabnik
2015-05-11 12:07:39 +00:00
Carol Nichols
218d38fb94
Overwrite grammar sections with what was removed from the reference
...
Between ffc5f1c , when grammar.md was created by copying parts of the
reference, and 8cf2552 , when all EBNF was removed from reference.md,
there were parts of the grammar that were updated in reference.md but
not grammar.md, and then they weren't copied over because they existed
already, but they were slightly out of date.
Example: the `path_item : ident | "self" ;` rule in Use declarations was
changed from "mod" to "self" in the reference in 195fd9a but wasn't
updated in the grammar.
2015-05-10 22:47:39 -04:00
Carol Nichols
53cd0bc772
Add literal semicolon to the grammar of view_item
...
Both external crate declarations and use declarations need to end with a
semicolon.
2015-05-10 22:47:39 -04:00
Carol Nichols
c3156a8ff4
Remove operator precedence section covered in the reference
2015-05-10 22:47:39 -04:00
Carol Nichols
e607d76564
Fill in more parts of the grammar for Expressions
2015-05-10 22:47:31 -04:00
Carol Nichols
ab913c881c
Fill in grammar for Statements
...
Some of this text is duplicated in the reference (and belongs there) so
remove it. It says item grammar is the same, so point to that grammar
section.
2015-05-10 22:37:31 -04:00
Carol Nichols
a5c651cfdf
Point to the use declaration section from the re-exporting section
...
The syntax for re-exporting privacy is covered in the use declaration
item.
2015-05-10 22:27:10 -04:00
Carol Nichols
c9c8ff1762
Add visibility section of the grammar
...
Namely an optional "pub" before any item. The "pub" in the Use
declaration section should use this too.
2015-05-10 22:26:45 -04:00
Ulrik Sverdrup
12d50b2da0
docs: Fixes in Reference Chapter 6.1
2015-05-11 03:41:54 +02:00
Johann
6a19046423
Four spaces indent, rephrasing
2015-05-11 02:40:02 +02:00
Johann Hofmann
770f0e95a1
Add if let expressions example
2015-05-11 02:03:37 +02:00
Johann Hofmann
295b62dfb9
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
2015-05-11 01:22:57 +02:00
Pete Hunt
a168a15008
Fix typo in references-and-borrowing docs
2015-05-10 16:10:02 -07:00
Pete Hunt
6d410132dc
Fix typo in guessing-game docs
2015-05-10 15:11:40 -07:00
Jan-Erik Rediger
f11c4ba30c
Remove extra parentheses
2015-05-10 23:22:00 +02:00
Steve Klabnik
c70458ba5d
Rollup merge of #25263 - fhinkel:master, r=steveklabnik
2015-05-10 16:44:24 -04:00
Steve Klabnik
7ae332c39f
Rollup merge of #25257 - dpetersen:mutability-docfix, r=steveklabnik
...
I think there's a trivial missing word in the Mutability document. I reformatted the resulting paragraph in vim, which seems to match what the rest of the document is doing as far as word wrapping.
Edit: I found another minor thing as I continued reading.
P.S. I'm re-reading the docs, since so much has changed since my first read, and they've gotten even better! Nice job!
r? @steveklabnik
2015-05-10 16:44:23 -04:00
Steve Klabnik
fa207fafc6
Rollup merge of #25239 - sindreij:patch-1, r=alexcrichton
2015-05-10 16:44:22 -04:00
Steve Klabnik
ba8eb58257
Rollup merge of #25222 - GuillaumeGomez:doc-ref, r=steveklabnik
...
r? @steveklabnik
2015-05-10 16:44:22 -04:00
Steve Klabnik
a7253780b2
Rollup merge of #25188 - tincann:patch-1, r=steveklabnik
2015-05-10 16:44:22 -04:00
Alexander Polakov
0c390d2f8e
point supposed to be immutable in this example
2015-05-10 22:37:06 +03:00
Guillaume Gomez
25543f38e4
Add missing backticks
2015-05-10 21:05:04 +02:00
Sindre Johansen
8ad1c90db0
Removed the backticks on slices
2015-05-10 11:16:32 +02:00
Franziska Hinkelmann
2cc4d822df
Fix small typos in documentation
2015-05-10 08:02:06 +02:00
Manish Goregaokar
459652c832
Rollup merge of #25251 - nham:whitespace_lang_items, r=Manishearth
...
In my opinion this looks nicer, but also it matches the whitespace generally
used for stability markers.
2015-05-10 11:01:46 +05:30
Manish Goregaokar
fd099b2d50
Rollup merge of #25249 - robyoung:minor-doc-fix, r=Manishearth
...
Remove an rogue 'is' and fix some line wrapping.
2015-05-10 11:01:46 +05:30
Manish Goregaokar
79ca74d8e3
Rollup merge of #25242 - acgtyrant:patch-3, r=Manishearth
...
Fix a typo while `io::stdin().read_line()` returns `Result` actually
2015-05-10 11:01:45 +05:30
Don Petersen
ae1b64ff73
Fix typo in Match document.
2015-05-09 22:10:34 -07:00
Don Petersen
f8888af412
Add omitted word to mutability docs.
2015-05-09 20:32:00 -07:00
Isaac Ge
fa3fd813d6
Update error-handling.md
...
Fix two typos while `io::stdin().read_line()` returns `Result` actually
Signed-off-by: acgtyrant <acgtyrant@gmail.com>
2015-05-10 10:20:47 +08:00
Nick Hamann
7984074e25
Convert #[lang=".."] to #[lang = ".."] for docs too.
2015-05-09 16:08:02 -05:00
Rob Young
978dc9f36a
Minor docs fix
...
Remove an rogue 'is' and fix some line wrapping.
2015-05-09 18:31:00 +01:00
Manish Goregaokar
ac478ecb50
Rollup merge of #25216 - barosl:no-more-task, r=Manishearth
...
I've found that there are still huge amounts of occurrences of `task`s in the documentation. This PR tries to eliminate all of them in favor of `thread`.
2015-05-09 18:40:19 +05:30
Sindre Johansen
7a91fe845c
Fixed a typo. Removed an extra s
2015-05-09 12:59:24 +02:00