about summary refs log tree commit diff
path: root/src/doc/trpl
AgeCommit message (Collapse)AuthorLines
2015-05-14Fix version numbers in the guessing game.parir-6/+6
2015-05-13Fix automatic substitution of task->thread.David Reid-1/+1
2015-05-13Fix table syntax.David Reid-23/+23
2015-05-13Rollup merge of #25382 - steveklabnik:typo_fix, r=alexcrichtonSteve Klabnik-1/+1
Thanks apdapreturns
2015-05-13Rollup merge of #25379 - mpark:trpl, r=alexcrichtonSteve Klabnik-1/+1
2015-05-13Rollup merge of #25376 - swaroopch:patch-2, r=steveklabnikSteve Klabnik-0/+2
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-13Fix typoSteve Klabnik-1/+1
Thanks apdapreturns
2015-05-13trpl/error-handling - fix typoSwaroop C H-1/+1
2015-05-13TRPL: Fix a broken link to 'move semantics'Michael Park-1/+1
2015-05-13Add link to Debug traitSwaroop C H-0/+2
I don't recall reading about this `Debug` trait so far in the book.
2015-05-13Fix a typoSteve Klabnik-1/+1
Thanks @quantheory
2015-05-13Merge branch 'trpl_embedding' into rollupSteve Klabnik-0/+354
2015-05-13Merge branch 'doc-fixes' of https://github.com/wheals/rust into rollupSteve Klabnik-10/+15
2015-05-13Merge branch 'doc_release_channels' into rollupSteve Klabnik-0/+46
2015-05-13Rollup merge of #25348 - geofft:trpl-fix-enums, r=steveklabnikSteve Klabnik-112/+162
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-13Rollup merge of #25321 - steveklabnik:second_tutorial, r=alexcrichtonSteve Klabnik-0/+691
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-13Rollup merge of #25317 - steveklabnik:trpl_drop, r=alexcrichtonSteve Klabnik-2/+66
r? @alexcrichton
2015-05-12trpl/match: Add an example for matching on enumsGeoffrey Thomas-0/+37
2015-05-12trpl/enums: RewriteGeoffrey Thomas-51/+46
2015-05-12trpl/structs: Document unit-like structsGeoffrey Thomas-0/+19
2015-05-12trpl: move tuple-structs.md into structs.mdGeoffrey Thomas-61/+60
2015-05-12TRPL: dining philosophersSteve Klabnik-0/+691
2015-05-12TRPL: Rust inside other languagesSteve Klabnik-0/+354
2015-05-12TRPL: DropSteve Klabnik-2/+66
2015-05-12TRPL: release channelsSteve Klabnik-0/+46
2015-05-12Rollup merge of #25322 - frewsxcv:patch-23, r=steveklabnikManish Goregaokar-1/+1
`if` can be a statement or also an expression.
2015-05-12Rollup merge of #25221 - michal-czardybon:master, r=steveklabnikManish Goregaokar-16/+16
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-12book: typo fixes, wording improvements.Shmuale Mark-8/+9
The text in iterators.md wasn't wrong, but it read awkwardly to my ear.
2015-05-12TRPL: Borrow and AsRefSteve Klabnik-0/+94
These two traits are commonly confused. As such, explain the difference. Fixes #24163
2015-05-12Make mention of `if` more genericCorey Farwell-1/+1
`if` can be a statement or also an expression.
2015-05-11Rollup merge of #25314 - steveklabnik:static_to_associated, r=alexcrichtonSteve Klabnik-4/+4
2015-05-11Rollup merge of #25304 - oli-obk:patch-2, r=steveklabnikSteve Klabnik-1/+1
2015-05-11static method -> associated functionSteve Klabnik-4/+4
2015-05-11TRPL: the stack and the heapSteve Klabnik-1/+568
2015-05-11trpl: item macros must be followed by a semicolonOliver Schneider-1/+1
2015-05-11Rollup merge of #25287 - petehunt:patch-2, r=steveklabnikManish Goregaokar-2/+2
2015-05-11Rollup merge of #25284 - petehunt:patch-1, r=steveklabnikManish Goregaokar-1/+1
Noticed this while perusing the docs
2015-05-11Auto merge of #25277 - polachok:docfix, r=steveklabnikbors-1/+1
r? @steveklabnik
2015-05-11Fixed one textual mistake and one casing error.MichaƂ Czardybon-18/+18
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-10Fix typo in references-and-borrowing docsPete Hunt-2/+2
2015-05-10Fix typo in guessing-game docsPete Hunt-1/+1
2015-05-10Rollup merge of #25263 - fhinkel:master, r=steveklabnikSteve Klabnik-2/+2
2015-05-10Rollup merge of #25257 - dpetersen:mutability-docfix, r=steveklabnikSteve Klabnik-3/+3
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-10Rollup merge of #25239 - sindreij:patch-1, r=alexcrichtonSteve Klabnik-1/+1
2015-05-10Rollup merge of #25222 - GuillaumeGomez:doc-ref, r=steveklabnikSteve Klabnik-0/+35
r? @steveklabnik
2015-05-10Rollup merge of #25188 - tincann:patch-1, r=steveklabnikSteve Klabnik-1/+1
2015-05-10point supposed to be immutable in this exampleAlexander Polakov-1/+1
2015-05-10Add missing backticksGuillaume Gomez-0/+3
2015-05-10Removed the backticks on slicesSindre Johansen-1/+1
2015-05-10Fix small typos in documentationFranziska Hinkelmann-2/+2