about summary refs log tree commit diff
path: root/src/doc/book
AgeCommit message (Collapse)AuthorLines
2015-12-02book: Change mention of unused `return` to `panic!`Ori Avtalion-1/+1
2015-12-01trpl: explain how to inhibit rustdoc's auto-mainAlex Burka-9/+16
I think this fixes #30137. I basically just repeated some details that were scattered around other places in this document, and emphasized that you probably don't want an `extern crate` or `mod` statement to end up inside a function.
2015-12-01Clarify ambiguity about how to ask Cargo for a specific versionPaul A. Jungwirth-3/+7
2015-12-01Fix wording in Guessing GameOri Avtalion-2/+2
2015-12-01trpl: additions & fixes for syntax index.Daniel Keep-2/+6
* `const`: Add reference to raw pointers * Change `expr!(...)` etc. examples to use `ident` instead. *Technically*, it should be `pat`, but that's not how it works in practice. * `|`: add reference to closure syntax. * Closure syntax entry. * Indexing and slicing entries.
2015-11-30Rollup merge of #30115 - nilcons-contrib:fix-book-stack, r=steveklabnikSteve Klabnik-1/+1
The `f` argument will reference the actual value in the `d` box, not the box in the `bar`'s stack frame. I am just learning Rust, so I don't know how to explain this well, but just from `f`'s type it is clear that it will be a pointer to an `i32`, not a pointer to a pointer. Some `println!("{:p}", ...)`'s can easily confirm this. I would actually suggest to remove/simplify this part of the example. This is a subtle issue that can easily confuse people at the early stages of familiarizing with the language. (As I got confused by it. :))
2015-11-30Rollup merge of #30114 - sourcefrog:doc-casts2, r=ManishearthSteve Klabnik-7/+19
2015-11-30Rollup merge of #30108 - bhargavrpatel:master, r=steveklabnikSteve Klabnik-1/+1
2015-11-30Correct grammarMartin Pool-1/+1
Thanks @Manishearth
2015-11-30Additional text and examples around castingMartin Pool-7/+19
2015-11-30Fix pointer value in the 'complex example'Mihaly Barasz-1/+1
The `f` argument will reference the actual value in the `d` box, not the box in the `bar`'s stack frame.
2015-11-30Remove broken explicit coercion exampleMartin Pool-7/+0
2015-11-29Change verbiage in Stack & Heap pageBhargav Patel-1/+1
Made a small change in the sentence. It seemed confusing to read the word "actual" twice in the sentence; I removed it completely.
2015-11-29Auto merge of #30088 - sourcefrog:doc-casts, r=steveklabnikbors-5/+113
Based on the description in https://github.com/rust-lang/rust/blob/219eca11b044de3644b3e9101124513c1a842b09/src/librustc_typeck/check/cast.rs#L11 and https://doc.rust-lang.org/nightly/nomicon/casts.html
2015-11-29Rephrased description of castingMartin Pool-9/+21
2015-11-29Add information about numeric casts, from the nomiconMartin Pool-0/+26
2015-11-29Auto merge of #30059 - androm3da:master, r=blussbors-6/+6
2015-11-28Auto merge of #29651 - tshepang:misc, r=steveklabnikbors-5/+8
2015-11-28doc(book/ffi): remove duplicate link reference `[libc]'xd1le-2/+0
2015-11-27Attempted documentation of coercionsMartin Pool-3/+19
Trying to summarize here only the cases that will make sense at the level of the rust book
2015-11-27Copy in some documentation about which casts are legalMartin Pool-5/+59
2015-11-27Shifted focus of while-let example per review.ebadf-6/+5
2015-11-26move librustc/plugin to librustc_pluginAriel Ben-Yehuda-5/+7
this is a [breaking-change] to all plugin authors - sorry
2015-11-25Corrections to the while-let example per review.ebadf-5/+4
2015-11-26Auto merge of #30053 - JIghtuse:master, r=steveklabnikbors-0/+1
2015-11-26book: miscellaneous improvements to "dining philosophers" exampleTshepang Lekhonkhobe-5/+8
2015-11-25Updated "while let" example.androm3da-3/+5
2015-11-25trpl: Fix example logic in error handling chapterBoris Egorov-0/+1
2015-11-24Add cargo instructions for dinning_philosopher projectMatthias Bussonnier-2/+11
At this point of the book, reader have likely use `cargo new --bin`, likely 2 times, once if they are lazy. This remind them of the `cargo` syntax. I was myself unsure whether it was `cargo create`, `cargo new`, and whether it would initialize in current working directory or needed a target.
2015-11-24fixed inconsistent indentation in book exampleAlex Gaynor-1/+1
looks like a case of mixed tabs and spaces
2015-11-23wording: results don't failPhilipp Matthias Schäfer-1/+1
2015-11-21change link on book front page trpl -> bookMatthias Kauer-3/+2
2015-11-20Remove slice pattern from compiler plugin exampleFlorian Hahn-4/+11
closes #29930
2015-11-19src/doc/trpl -> src/doc/bookSteve Klabnik-0/+18452
The book was located under 'src/doc/trpl' because originally, it was going to be hosted under that URL. Late in the game, before 1.0, we decided that /book was a better one, so we changed the output, but not the input. This causes confusion for no good reason. So we'll change the source directory to look like the output directory, like for every other thing in src/doc.