about summary refs log tree commit diff
path: root/src/doc/book
AgeCommit message (Collapse)AuthorLines
2016-02-10Fix documentation example in the bookOliver Middleton-3/+3
The code sections shouldn't be inside a ```text block.
2016-02-09Rollup merge of #31514 - cgar:spelling, r=alexcrichtonSteve Klabnik-1/+1
2016-02-09Minor spelling fixesCarlos E. Garcia-1/+1
2016-02-07Clean up Error Handling case study examplesAndrew Barchuk-45/+44
Remove unnecessary cloning and conversions. Expand tabs left in examples.
2016-02-04Synthesize calls to box_free language itemSimonas Kazlauskas-0/+6
This gets rid of Drop(Free, _) MIR construct by synthesizing a call to language item which takes care of dropping instead.
2016-02-03Rollup merge of #31366 - paulsmith:patch-1, r=steveklabnikManish Goregaokar-1/+1
The context of the link is `Result` but it points to the docs on `Option`'s `expect`.
2016-02-03Rollup merge of #31352 - steveklabnik:gh31154, r=nikomatsakisManish Goregaokar-1/+33
Fixes #31154
2016-02-02Add note about temporariesSteve Klabnik-2/+10
2016-02-02Fix reference to `expect`Paul Smith-1/+1
The context of the link is `Result` but it points to the docs on `Option`'s `expect`.
2016-02-02Rollup merge of #31348 - alexcrichton:shuffle-tiers, r=steveklabnikSteve Klabnik-1/+5
Some other shufflings as well: * Three powerpc triples for Linux have been added recently * An armv7 linux triple was added recently * The 64-bit Solaris triple is now mentioned in tier 3 We are currently now also building nightlies for iOS, powerpc triples, and armv7, but there hasn't been much vetting of the triples themselves so I've left them in tier 3 for now.
2016-02-02Rollup merge of #31345 - kamalmarhubi:book-docs-special-section-errors, ↵Steve Klabnik-1/+1
r=steveklabnik This matches the usage in the standard library's documentation.
2016-02-02Rollup merge of #31344 - steveklabnik:gh31334, r=alexcrichtonSteve Klabnik-5/+4
Fixes #31334 This is just a quicker fix for this issue; since I'm working on the next draft of the book, I don't want to put a huuuge amount of work into improving it here.
2016-02-02Rollup merge of #31340 - pra85:patch-1, r=alexcrichtonSteve Klabnik-1/+1
Spelling mistake - `familliar` > `familiar`
2016-02-02Rollup merge of #30971 - SDX2000:docfixes, r=steveklabnikSteve Klabnik-5/+26
Updated documentation to clarify the difference between `and_then` and `map`. This also explains why we need `and_then` in addition to `map`. Please look at the diff for more information. r? @alexcrichton
2016-02-01Explain behavior of _Steve Klabnik-1/+25
Fixes #31154
2016-02-01doc: Move 32-bit MSVC to a tier 1 platformAlex Crichton-1/+5
Some other shufflings as well: * Three powerpc triples for Linux have been added recently * An armv7 linux triple was added recently * The 64-bit Solaris triple is now mentioned in tier 3 We are currently now also building nightlies for iOS, powerpc triples, and armv7, but there hasn't been much vetting of the triples themselves so I've left them in tier 3 for now.
2016-02-01book: Change "Failures" to "Errors" in doc special sections chapterKamal Marhubi-1/+1
This matches the usage in the standard library's documentation.
2016-02-01make this example more obviousSteve Klabnik-5/+4
Fixes #31334
2016-02-01Fix typo in doc/book/getting-started.mdPrayag Verma-1/+1
Spelling mistake - `familliar` > `familiar`
2016-01-30Reword explanation of 'size' types.jocki84-3/+5
Do not reference machine 'pointers' in explanation of 'size' types.
2016-01-30Rollup merge of #31296 - steveklabnik:gh31249, r=alexcrichtonManish Goregaokar-0/+11
Rustdoc will automatically wrap things in main, but this doesn't work here. Fixes #31249
2016-01-30Rollup merge of #31295 - steveklabnik:gh31266, r=alexcrichtonManish Goregaokar-0/+5
These are free functions in the text, but methods in the standard library. Fixes #31266
2016-01-30Ignoring demo code with compilation error.Sandeep Datta-1/+1
2016-01-29Add main() so that examples workSteve Klabnik-0/+11
Rustdoc will automatically wrap things in main, but this doesn't work here. Fixes #31249
2016-01-29Make note that this is different in stdSteve Klabnik-0/+5
These are free functions in the text, but methods in the standard library. Fixes #31266
2016-01-29Fix number of methods in guessing gameSteve Klabnik-2/+2
This code was refactored, but the words were not Fixes #31284
2016-01-28Auto merge of #31240 - durka:follow-set-docs, r=pnkfelixbors-3/+3
Missed as part of #31152, but the list had other mistakes as well. r? @pnkfelix
2016-01-28Rollup merge of #31226 - steveklabnik:gh30954, r=ManishearthManish Goregaokar-3/+4
Fixes #30954
2016-01-28Rollup merge of #31222 - durka:patch-15, r=steveklabnikManish Goregaokar-2/+7
r? @steveklabnik
2016-01-28Rollup merge of #30689 - Manishearth:lifetime-bound, r=steveklabnikManish Goregaokar-1/+2
We should have stuff on this in the book somewhere too r? @steveklabnik
2016-01-27trpl: fix macro follow setsAlex Burka-3/+3
2016-01-26Mention that globs import public symbolsSteve Klabnik-3/+4
Fixes #30954
2016-01-26capitalization and associated typesAlex Burka-5/+5
2016-01-26book: cover UFCS in Syntax IndexAlex Burka-1/+6
2016-01-26Rollup merge of #31199 - steveklabnik:gh31181, r=ManishearthManish Goregaokar-0/+4
Fixes #31181
2016-01-26Rollup merge of #31197 - apasel422:issue-31195, r=steveklabnikManish Goregaokar-1/+1
Closes #31195 r? @steveklabnik
2016-01-25Mention the need for a linkerSteve Klabnik-0/+4
Fixes #31181
2016-01-25Fix typo in "Loops" section of the bookAndrew Paseltiner-1/+1
Closes #31195
2016-01-25Replace link to learn-rust in the bookOliver Middleton-12/+3
It was removed in #30595. Also delete the old learn-rust.md.
2016-01-25Fix link to hello-cargo in the bookOliver Middleton-1/+1
It was moved in #29538.
2016-01-23Clarify when `Cargo.lock` is created by `cargo build` in the bookDirk Gadsden-3/+5
Also remove a "finally" in the section about building for release to make it feel a bit friendlier.
2016-01-23Rollup merge of #31145 - D101101:patch-1, r=steveklabnikSteve Klabnik-0/+1
r? @steveklabnik
2016-01-23Rollup merge of #31128 - kamalmarhubi:book-trait-impl-clarify, r=steveklabnikSteve Klabnik-5/+11
2016-01-23Rollup merge of #31113 - steveklabnik:master, r=alexcrichtonSteve Klabnik-7/+8
r? @alexcrichton
2016-01-23Rollup merge of #31111 - apasel422:issue-31103, r=steveklabnikSteve Klabnik-1/+1
Closes #31103 r? @steveklabnik
2016-01-23Rollup merge of #31061 - brson:bib, r=steveklabnikSteve Klabnik-0/+1
2016-01-23Fix the missing line in the guessing-game.mdSergey Veselkov-0/+1
r? @steveklabnik
2016-01-23Auto merge of #30807 - kolloch:patch-1, r=steveklabnikbors-0/+3
When I read the book, the following sentence of the reference documentation helped me greatly to understand slices: "Slices are a view into a block of memory represented as a pointer and a length." In this commit, I tried to integrate the gist of that into the slice section inside of "primitive-types.md". I am not a native speaker, so feel very free to improve the wording. r? @steveklabnik
2016-01-22Forward reference crates and modules chapterKamal Marhubi-1/+3
2016-01-22book: Clarify that trait or type must be in same crate as implKamal Marhubi-5/+9