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
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