about summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2016-02-16Clarify contiguous memory array structure of vectors in documentationDirk Gadsden-2/+9
Closes #31554. Contributes to #29380.
2016-02-15reference: vtable entries are resolved at runtimeIvan Kozik-1/+1
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 #31638 - rkruppe:rm-tex, r=alexcrichtonManish Goregaokar-2/+0
This file is unused since #27789
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-13Remove the last remaining .tex fileRobin Kruppe-2/+0
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-06Auto merge of #31307 - nagisa:mir-drop-terminator, r=nikomatsakisbors-0/+6
The scope of these refactorings is a little bit bigger than the title implies. See each commit for details. I’m submitting this for nitpicking now (the first 4 commits), because I feel the basic idea/implementation is sound and should work. I will eventually expand this PR to cover the translator changes necessary for all this to work (+ tests), ~~and perhaps implement a dynamic dropping scheme while I’m at it as well.~~ r? @nikomatsakis
2016-02-04Rollup merge of #31413 - tshepang:improve, r=steveklabnikSteve Klabnik-2/+2
2016-02-04Rollup merge of #31412 - tshepang:add-trailing-commas, r=steveklabnikSteve Klabnik-5/+5
2016-02-04Rollup merge of #31411 - tshepang:idiom, r=steveklabnikSteve Klabnik-1/+1
2016-02-04reference: add trailing commasTshepang Lekhonkhobe-5/+5
2016-02-04reference: make the line a little more readableTshepang Lekhonkhobe-2/+2
2016-02-04reference: explicit return at function end is not idiomaticTshepang Lekhonkhobe-1/+1
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-03Remove redundant semicolon from "block_expr" in grammar referenceMatt Brubeck-1/+1
"stmt" already includes the terminating semicolon.
2016-02-03Auto merge of #31370 - Manishearth:rollup, r=Manishearthbors-2/+34
- Successful merges: #27499, #31220, #31329, #31332, #31347, #31351, #31352, #31366 - Failed merges:
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-02Auto merge of #31312 - alexcrichton:no-le-in-powerpc64le, r=alexcrichtonbors-1/+1
Currently the `mipsel-unknown-linux-gnu` target doesn't actually set the `target_arch` value to `mipsel` but it rather uses `mips`. Alternatively the `powerpc64le` target does indeed set the `target_arch` as `powerpc64le`, causing a bit of inconsistency between theset two. As these are just the same instance of one instruction set, let's use `target_endian` to switch between them and only set the `target_arch` as one value. This should cut down on the number of `#[cfg]` annotations necessary and all around be a little more ergonomic.
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-01Remove "powerpc64le" and "mipsel" target_archAlex Crichton-1/+1
Currently the `mipsel-unknown-linux-gnu` target doesn't actually set the `target_arch` value to `mipsel` but it rather uses `mips`. Alternatively the `powerpc64le` target does indeed set the `target_arch` as `powerpc64le`, causing a bit of inconsistency between theset two. As these are just the same instance of one instruction set, let's use `target_endian` to switch between them and only set the `target_arch` as one value. This should cut down on the number of `#[cfg]` annotations necessary and all around be a little more ergonomic.
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