about summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2015-07-16Merge branch 'more-ref-fixes' of https://github.com/tshepang/rust into ↵Steve Klabnik-8/+8
rollup_central
2015-07-16Merge branch 'coercions' of https://github.com/tshepang/rust into rollup_centralSteve Klabnik-41/+66
2015-07-16Merge branch 'nopacked' of https://github.com/Stebalien/rust into rollup_centralSteve Klabnik-2/+0
2015-07-16Rollup merge of #27020 - goyox86:goyox86/fix-error-handling-snippet, ↵Manish Goregaokar-1/+3
r=steveklabnik This PR fixes a snippet of code on the error handling chapter of \"The Rust Programming Language\". //cc @steveklabnik The docs state that trying to compile the snippet will yield the following error: ```bash anon>:13:5: 20:6 error: non-exhaustive patterns: `_` not covered [E0004] ``` But instead the error received is: ```bash <anon>:22:46: 22:56 error: unresolved name `NewRelease` <anon>:22 std::io::println(descriptive_probability(NewRelease)); ^~~~~~~~~~ <anon>:22:5: 22:21 error: unresolved name `std::io::println` <anon>:22 std::io::println(descriptive_probability(NewRelease)); ^~~~~~~~~~~~~~~~ error: aborting due to 2 previous errors playpen: application terminated with error code 101 ``` After applying this PR the expected error is returned: ```bash anon>:13:5: 20:6 error: non-exhaustive patterns: `_` not covered [E0004] <anon>:13 match probability(&event) { <anon>:14 1.00 => \"certain\", <anon>:15 0.00 => \"impossible\", <anon>:16 0.00 ... 0.25 => \"very unlikely\", <anon>:17 0.25 ... 0.50 => \"unlikely\", <anon>:18 0.50 ... 0.75 => \"likely\", ... <anon>:13:5: 20:6 help: see the detailed explanation for E0004 error: aborting due to previous error ```
2015-07-16Rollup merge of #26695 - rutsky:patch-2, r=ManishearthManish Goregaokar-2/+2
r? @steveklabnik
2015-07-14Don't mention packed attribute in reference.mdSteven Allen-2/+0
2015-07-14Auto merge of #27016 - alexcrichton:inline-asm-docs, r=steveklabnikbors-1/+10
Hot off the press, we've now got some nice documentation to link to in LLVM officially!
2015-07-13Fixed snippet to return the proper error.Jose Narvaez-1/+3
2015-07-13doc: Add a link to LLVM's new inline assembly docsAlex Crichton-1/+10
Hot off the press, we've now got some nice documentation to link to in LLVM officially!
2015-07-13minor grammatical updateFrank McSherry-2/+2
Grammatical update (and passive -> active, but I'm not sure if "Rust" is often used as a subject in the book; feel free to revert that part for style, but keep the subject-verb agreement)
2015-07-12Clean up trailing whitespacesPavel Pravosud-11/+11
2015-07-12Fix multi-threading example in dining-philosophersPavel Pravosud-4/+4
2015-07-08Rollup merge of #26892 - steveklabnik:gh26482, r=alexcrichtonSteve Klabnik-3/+5
We weren't explicit enough about Cargo's default version behavior. For rust-lang/rust at least, Fixes #26482
2015-07-08TRPL: make version constraits explicitSteve Klabnik-3/+5
We weren't explicit enough about Cargo's default version behavior. For rust-lang/rust at least, Fixes #26482
2015-07-08Rollup merge of #26687 - christianweinz:patch-1, r=huonwSteve Klabnik-1/+1
The ‘_‘ wildcard does exactly not handle specific cases but all not specified ones.
2015-07-08reference: miscellaneous fixesTshepang Lekhonkhobe-8/+8
2015-07-07Rollup merge of #26855 - steveklabnik:gh26344, r=alexcrichtonSteve Klabnik-5/+6
Fixes #26344
2015-07-07Rollup merge of #26854 - steveklabnik:gh26345, r=alexcrichtonSteve Klabnik-1/+14
I am not mentioning #[unsafe_drop_flag] because it should go away eventually, and also because it's just an attribute, it's not really a use of the `unsafe` keyword. Fixes #26345
2015-07-07Rollup merge of #26853 - steveklabnik:gh26346, r=GankroSteve Klabnik-14/+14
This incorrectly implied that doing things is fine in unsafe code Fixes #26346
2015-07-07Re-word UB in unsafe guideSteve Klabnik-14/+14
This incorrectly implied that doing things is fine in unsafe code Fixes #26346
2015-07-07Not literally all of concurrency is a librarySteve Klabnik-5/+6
Fixes #26344
2015-07-07There are four uses of unsafe, actuallySteve Klabnik-1/+14
I am not mentioning #[unsafe_drop_flag] because it should go away eventually, and also because it's just an attribute, it's not really a use of the `unsafe` keyword. Fixes #26345
2015-07-07Describe lifetime syntax for implSteve Klabnik-0/+29
Fixes #26375
2015-07-06Rollup merge of #26835 - tshepang:copy-or-not, r=steveklabnikSteve Klabnik-3/+2
2015-07-06Rollup merge of #26834 - tshepang:space, r=brsonSteve Klabnik-1/+0
2015-07-06Rollup merge of #26827 - steveklabnik:gh25786, r=alexcrichtonSteve Klabnik-0/+32
Fixes #25786
2015-07-06Rollup merge of #26761 - steveklabnik:actually_ub, r=alexcrichtonSteve Klabnik-13/+4
I incorrectly stated that it's an abort. r? @Gankro
2015-07-06reference: make 'Move and copied types' section more simpleTshepang Lekhonkhobe-3/+2
2015-07-06reference: do not display the extra spaceTshepang Lekhonkhobe-1/+0
2015-07-06FFI panic is UBSteve Klabnik-13/+4
I incorrectly stated that it's an abort.
2015-07-06Document _ in bindingsSteve Klabnik-0/+32
Fixes #25786
2015-07-06book: introduce `//!` doc comment in comments sectionLiigo Zhuang-0/+11
Closes #26801
2015-07-05Rollup merge of #26808 - tshepang:closures, r=steveklabnikSteve Klabnik-3/+4
2015-07-06reference: 'inherits' is more clear than 'implies'Tshepang Lekhonkhobe-3/+4
2015-07-05Rollup merge of #26800 - tshepang:comma, r=GankroSteve Klabnik-1/+1
2015-07-05Rollup merge of #26789 - tshepang:improve-array-examples, r=alexcrichtonSteve Klabnik-4/+9
2015-07-05reference: remove stray commaTshepang Lekhonkhobe-1/+1
2015-07-05reference: improve coercions sectionTshepang Lekhonkhobe-41/+66
2015-07-05Rollup merge of #26795 - tshepang:typo, r=steveklabnikSteve Klabnik-1/+1
2015-07-05reference: fix typoTshepang Lekhonkhobe-1/+1
2015-07-05Rollup merge of #26792 - tshepang:follow-idiom, r=steveklabnikSteve Klabnik-4/+2
2015-07-05reference: improve lambda exampleTshepang Lekhonkhobe-4/+2
2015-07-05Rollup merge of #26791 - tshepang:misc-ref-fixes, r=steveklabnikSteve Klabnik-2/+2
One is for grammar, and the other is for clarity
2015-07-05reference: tiny fixesTshepang Lekhonkhobe-2/+2
One is for grammar, and the other is for clarity
2015-07-05Rollup merge of #26788 - tshepang:not-exclamation-marks, r=steveklabnikSteve Klabnik-2/+2
The sentences are also so short that they don't need periods at the end
2015-07-05Rollup merge of #26787 - tshepang:tuple-usage, r=steveklabnikSteve Klabnik-3/+6
2015-07-05Rollup merge of #26785 - tshepang:inference, r=steveklabnikSteve Klabnik-12/+21
…at and integer types
2015-07-05reference: improve examples of the different array typesTshepang Lekhonkhobe-4/+9
2015-07-05reference: that looks like exclamations marks for some fontsTshepang Lekhonkhobe-2/+2
The sentences are also so short that they don't need periods at the end
2015-07-05reference: make tuple usage examples more meaningfulTshepang Lekhonkhobe-3/+6