Steve Klabnik
765a55ed20
Rollup merge of #25408 - Nashenas88:rust-book-stack-and-heap-typo, r=steveklabnik
...
I fixed the typo of the value of e in the memory tables. It is a reference to d, and so it should contain the memory location of d. I also fixed the incorrectly formatted tables so they display properly in html pages.
2015-05-14 20:30:42 -04:00
Steve Klabnik
c3562110d0
Rollup merge of #25407 - durka:patch-1, r=alexcrichton
2015-05-14 20:30:42 -04:00
Steve Klabnik
0028f855e2
Rollup merge of #25405 - dreid:patch-3, r=nikomatsakis
2015-05-14 20:30:42 -04:00
Steve Klabnik
1f40cde836
Rollup merge of #25404 - dnaeon:doc-fixes, r=steveklabnik
...
This PR fixes a comment in the `while Loops` section of the Rust book with the correct type of a variable binding.
2015-05-14 20:30:41 -04:00
Alex Burka
c8b06891f0
trpl: punctuation fix in Patterns
2015-05-14 14:51:16 -04:00
Paul Faria
785cbe3ac9
I fixed the typo of the value of e in the memory tables. It is a reference to d, and so it should contain the memory location of d. I also fixed the incorrectly formatted tables.
2015-05-14 13:43:11 -04:00
Alex Burka
e2bb734ac1
trpl: punctuation fix
2015-05-14 12:20:33 -04:00
David Reid
acb5e02add
Another thread->task fix.
2015-05-14 08:15:50 -07:00
Marin Atanasov Nikolov
b4e1ce56a3
trpl-docs: Specify correct type of variable binding
2015-05-14 17:38:22 +03:00
Manish Goregaokar
ff207b7a05
Rollup merge of #25397 - dreid:patch-2, r=alexcrichton
2015-05-14 19:33:09 +05:30
David Reid
f539c416a0
Fix automatic substitution of task->thread.
2015-05-13 20:41:03 -07:00
David Reid
71f7fb2b59
Fix table syntax.
2015-05-13 20:03:56 -07:00
Steve Klabnik
a93c8b655f
Rollup merge of #25382 - steveklabnik:typo_fix, r=alexcrichton
...
Thanks apdapreturns
2015-05-13 16:51:30 -04:00
Steve Klabnik
63f39a621b
Rollup merge of #25379 - mpark:trpl, r=alexcrichton
2015-05-13 16:51:29 -04:00
Steve Klabnik
a96f09bf52
Rollup merge of #25376 - swaroopch:patch-2, r=steveklabnik
...
I don't recall reading about this `Debug` trait so far in the book. Please ignore this PR if I have missed that part.
r? @steveklabnik
2015-05-13 16:51:29 -04:00
Steve Klabnik
22eb466dfd
Fix typo
...
Thanks apdapreturns
2015-05-13 16:43:39 -04:00
Swaroop C H
f6e5369e53
trpl/error-handling - fix typo
2015-05-13 13:23:10 -07:00
Michael Park
ee57f28f49
TRPL: Fix a broken link to 'move semantics'
2015-05-13 11:41:25 -07:00
Swaroop C H
baef1327f4
Add link to Debug trait
...
I don't recall reading about this `Debug` trait so far in the book.
2015-05-13 09:49:11 -07:00
Steve Klabnik
4b5b9668e0
Fix a typo
...
Thanks @quantheory
2015-05-13 02:46:23 -04:00
Steve Klabnik
11f945cd00
Merge branch 'trpl_embedding' into rollup
2015-05-13 00:55:18 -04:00
Steve Klabnik
704fb9c2c9
Merge branch 'doc-fixes' of https://github.com/wheals/rust into rollup
2015-05-13 00:54:55 -04:00
Steve Klabnik
f26a2a6e89
Merge branch 'doc_release_channels' into rollup
2015-05-13 00:53:32 -04:00
Steve Klabnik
dd11c7f047
Rollup merge of #25348 - geofft:trpl-fix-enums, r=steveklabnik
...
The enums chapter at the moment is ... weird. The examples aren't about enums, they're about structs, and most of the chapter talks about how enums don't support comparison operators by default (which is also true of other compound data types.) I think there was a story here once, but some coherency got lost in refactoring.
There are two preliminary patches here, one to combine the struct and tuple-struct chapters, and one to document unit-like structs, because enum syntax is easier to explain once you have those three. The final patch moves the enum chapter after the struct chapter, and rewrites most of it to talk about enums usefully (including covering matches on enums).
r? @steveklabnik
2015-05-13 00:52:49 -04:00
Steve Klabnik
7964d4e512
Rollup merge of #25321 - steveklabnik:second_tutorial, r=alexcrichton
...
This is a little rough, and it needs squashed and section headers, but i'd like to get some eyes on it sooner rather than later.
2015-05-13 00:52:48 -04:00
Steve Klabnik
fe8a4e3dbf
Rollup merge of #25317 - steveklabnik:trpl_drop, r=alexcrichton
...
r? @alexcrichton
2015-05-13 00:52:48 -04:00
Geoffrey Thomas
f59f41e04c
trpl/match: Add an example for matching on enums
2015-05-12 20:21:21 -04:00
Geoffrey Thomas
8d50216e9d
trpl/enums: Rewrite
2015-05-12 20:21:21 -04:00
Geoffrey Thomas
797d8e2869
trpl/structs: Document unit-like structs
2015-05-12 20:21:21 -04:00
Geoffrey Thomas
457aed7ca0
trpl: move tuple-structs.md into structs.md
2015-05-12 20:21:19 -04:00
Steve Klabnik
2ba61698cc
TRPL: dining philosophers
2015-05-12 19:30:48 -04:00
Steve Klabnik
fc6372ea1f
TRPL: Rust inside other languages
2015-05-12 18:26:03 -04:00
Steve Klabnik
9a3e98be1c
TRPL: Drop
2015-05-12 15:10:44 -04:00
Steve Klabnik
0ad15bbc2b
TRPL: release channels
2015-05-12 15:09:17 -04:00
Manish Goregaokar
e216057dac
Rollup merge of #25322 - frewsxcv:patch-23, r=steveklabnik
...
`if` can be a statement or also an expression.
2015-05-12 22:57:52 +05:30
Manish Goregaokar
e91d272fbb
Rollup merge of #25221 - michal-czardybon:master, r=steveklabnik
...
I corrected some pretty obvious textual mistakes. One thing requires more attention - the paragraph at line 133 in Ownership. It was confusing, so I changed it, but I am no sure if this is what the author had in mind.
2015-05-12 22:57:52 +05:30
Shmuale Mark
a22b3270b8
book: typo fixes, wording improvements.
...
The text in iterators.md wasn't wrong, but it read awkwardly to my ear.
2015-05-12 11:58:07 -04:00
Steve Klabnik
e780fb270c
TRPL: Borrow and AsRef
...
These two traits are commonly confused. As such, explain the difference.
Fixes #24163
2015-05-12 10:53:50 -04:00
Corey Farwell
d13f765be8
Make mention of if more generic
...
`if` can be a statement or also an expression.
2015-05-12 00:33:22 -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
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
Oliver Schneider
7dd7bea3ac
trpl: item macros must be followed by a semicolon
2015-05-11 16:46:24 +02:00
Manish Goregaokar
8f01d8d7c2
Rollup merge of #25287 - petehunt:patch-2, r=steveklabnik
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
Michał Czardybon
bff170786c
Fixed one textual mistake and one casing error.
...
Corrected "Ownership":
- [`Variable bindings`] link was not processed properly.
- Changed the paragraph about move semantics with two vectors, because it was confusing.
- Removed "So it may not be as inefficient as it initially seems", because there is nothing that seems inefficient in copying pointers only.
- Other text corrections.
Fixed copied-and-pasted text mistakes.
Revised the paragraph about moving a vector (taking into account suggestions by echochamber).
Fixed markdown.
Fixes requested by steveklabnik.
Brought back a sentence about supposed inefficiency.
2015-05-11 09:02:25 +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