summary refs log tree commit diff
path: root/src/doc/book
AgeCommit message (Collapse)AuthorLines
2016-02-29Auto merge of #31958 - teoryn:patch-3, r=nagisabors-1/+1
2016-02-28Fix typo (an Result)Kevin Stock-1/+1
2016-02-28Fix typo (!#[no_std])Kevin Stock-1/+1
2016-02-27Auto merge of #31931 - Luke-Nukem:master, r=steveklabnikbors-9/+9
Refinement of paragraph referenced by [this issue](https://github.com/rust-lang/rust/issues/31927). The paragraph in question had been adjusted already, but I've made some further clarifications which should help with readability and not leave the reader any `dangling pointers`.
2016-02-27Resolve ambiguous documentationKevin Stock-4/+4
See http://www.ietf.org/rfc/rfc2119.txt
2016-02-27Refinement of paragraph referenced by [thisLuke Jones-9/+9
issue](https://github.com/rust-lang/rust/issues/31927)
2016-02-25Rollup merge of #31827 - teoryn:patch-1, r=brsonManish Goregaokar-1/+1
2016-02-25Rollup merge of #31870 - ivan:filter-explain, r=steveklabnikManish Goregaokar-4/+6
As a Rust newbie, I found the book's explanation for why the `filter` closure gets a reference very confusing, and tried to figure out why `filter` is somehow less consumptive than `map` -- but it isn't; that's controlled by `iter`/`into_iter`. I flailed around for a while until @habnabit explained it to me, and in retrospect it is quite obvious :-)
2016-02-24book: Explain better why the filter closure gets a referenceIvan Kozik-4/+6
2016-02-24Capitalize some occurences of Rust in documentationFlorian Hahn-1/+1
2016-02-22Fix warn(unused_mut) in exampleKevin Stock-1/+1
2016-02-20Fix number of lines and methods in guessing gameChad Shaffer-2/+2
2016-02-17Rollup merge of #31565 - SDX2000:docfixes4, r=steveklabnikSteve Klabnik-9/+53
See title and diff for more information.
2016-02-17Made v2 mutable so that we can actually truncate it.Sandeep Datta-2/+2
2016-02-16Clarify contiguous memory array structure of vectors in documentationDirk Gadsden-2/+9
Closes #31554. Contributes to #29380.
2016-02-14Rollup merge of #31658 - felgru:master, r=steveklabnikSteve Klabnik-1/+1
In the Rust code above this block of compiler output, the function is called print_sum, so use the same function name in the error message.
2016-02-14doc: fix compiler outputFelix Gruber-1/+1
In the Rust code above, the function is called print_sum, so use the same function name in the error message.
2016-02-14doc: Remove trailing whitespacefbergr-1/+1
2016-02-14Rollup merge of #31612 - raindev:grammar, r=steveklabnikManish Goregaokar-1/+1
I feel sorry for bothering you with such a literally one character changes. If it is counter productive feel free to point it out in the comments, that would be totally understandable. I could try to pack such a changes together in one PR to make them less distractive. r? @steveklabnik
2016-02-14Rollup merge of #31610 - Manishearth:doc-clarify-txrx, r=steveklabnikManish Goregaokar-0/+2
Not everyone knows this convention. We could just rename the variables in the example, but since this notation is commonly used it's a good opportunity to introduce it. r? @steveklabnik
2016-02-14Rollup merge of #31563 - SDX2000:docfixes1, r=steveklabnikManish Goregaokar-4/+6
This is a minor change. Please see title. IMO this is important since this is the first instance when we talk about allocating a vector. Not saying that it is allocated on the stack here leaves room for speculation and this might put off some people (they might not even read the later sections which go into more detail about this).
2016-02-13Fixed build error as per steveklabnik's suggestion and expanded on the ills ↵Sandeep Datta-1/+5
of doing out of bounds accesses.
2016-02-12Remove unnecessary articleAndrew Barchuk-1/+1
2016-02-13Clarify what tx/rx mean in concurrency docsManish Goregaokar-0/+2
2016-02-11Minor change.Sandeep Datta-7/+7
2016-02-11Minor change.Sandeep Datta-2/+2
2016-02-11Explained the data race with an example.Sandeep Datta-10/+30
2016-02-11Clarified move semantics in "the details" section.Sandeep Datta-7/+27
2016-02-11Added a few words to indicate where the vector object is created.Sandeep Datta-4/+6
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-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