about summary refs log tree commit diff
path: root/src/doc/trpl
AgeCommit message (Collapse)AuthorLines
2015-07-22Rollup merge of #27183 - Dangthrimble:master, r=steveklabnikSteve Klabnik-2/+13
Updated "Installing Rust" and "After installation" to provide additional guidance to Windows users on including Rust in the Path system variable. r? @steveklabnik
2015-07-22Path changed to %PATH%Jonathan Hansford-6/+6
The two references to the "Path system variable" have changed to the "%PATH% system variable".
2015-07-21Static linkingAidan Hobson Sayers-0/+127
2015-07-21Klabnik nit-picks ;)Ticki-1/+1
2015-07-21rust -> RustTicki-4/+4
2015-07-21Add info about usage of 'unsafe' keyword in bindings to foreign interfaces.Ticki-3/+7
2015-07-21Rename 'link-args' to 'advanced-linking', add introAidan Hobson Sayers-5/+12
2015-07-21Guidance on Windows install re "Add to PATH"Jonathan Hansford-2/+13
Updated "Installing Rust" and "After installation" to provide additional guidance to Windows users on including Rust in the Path system variable.
2015-07-20Add travis config to TRPL: release channelsSteve Klabnik-0/+23
This should help people configure travis to test all three channels.
2015-07-17Clean up some wording around globs.Steve Klabnik-3/+2
Globs used to be a feature you'd turn on, but now they're not, so this sounds a bit odd.
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-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-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-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 #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-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-01remove terminating dot from captionVladimir Rutsky-1/+1
2015-07-01add missing colonVladimir Rutsky-1/+1
2015-06-30Rollup merge of #26580 - adamheins:master, r=steveklabnikSteve Klabnik-1/+1
I found a sentence that felt a bit awkward to read in its current form, so I added a comma to break it up.
2015-06-30Rollup merge of #26506 - tshepang:doc-fix, r=steveklabnikSteve Klabnik-3/+5
2015-06-30Auto merge of #26662 - steveklabnik:gh26661, r=alexcrichtonbors-3/+3
This is his own mirror, so it shouldn't go down, unlike the previous one. Fixes #26661
2015-06-29Update link to OusterhoutSteve Klabnik-3/+3
This is his own mirror, so it shouldn't go down, unlike the previous one. Fixes #26661
2015-06-29Auto merge of #26623 - Saser:master, r=steveklabnikbors-1/+6
In Chapter 5.9 (References and Borrowing), there is an example [at the very end](https://doc.rust-lang.org/stable/book/references-and-borrowing.html#use-after-free) which shows that declaring a reference before declaring the variable that it points to results in a compilation error. The book does not really mention why this happens though -- in the sections before, it has described how different scopes affects the lifetime of resources, but there is no mention of how resources within the same scope work. This confused me a little, so I asked on #rust and got the answer that the resources are destroyed in the reverse order that they are declared, but the book makes no mention of it (as far as I can find) -- except in Chapter 5.21 (Drop), where it says: > When `x` goes out of scope at the end of `main()`, the code for `Drop` will run. `Drop` has one method, which is also called `drop()`. It takes a mutable reference to `self`. > > That’s it! The mechanics of `Drop` are very simple, but there are some subtleties. For example, values are dropped in the opposite order they are declared. [...] --- I feel like Chapter 5.9 (References and Borrowing) is probably the best place to put this information (as I have done in my additions), since it deals with other types of referencing and borrowing. However, since English is not my native language, the wording of my additions perhaps are a little "off" -- any feedback on them is appreciated.
2015-06-27Clarifying deallocation order of resources within same scopeChristian Persson-1/+6
2015-06-26make book match referenceAlexis Beingessner-5/+2
2015-06-25Improve sentence flow.Adam Heins-1/+1
2015-06-24Replace std::comm reference with std::sync::mpsc.Brody Holden-2/+2
The FFI documentation references std::comm. Replace with std::sync::mpsc. Also wrap the line.
2015-06-24Auto merge of #26528 - brson:papers, r=alexcrichtonbors-2/+29
This adds all papers that mention Rust that I'm aware of. Includes some undergrad work.
2015-06-24Auto merge of #26526 - djc:patch-1, r=steveklabnikbors-0/+6
In particular, I found that the disclaimer (promised in the second paragraph) doesn't stand out right now. I think the extra headers help with scanning this document, and making it easier to discern which steps are relevant to my particular flow through the options.
2015-06-24Auto merge of #26509 - tshepang:4-and-not-3, r=blussbors-2/+2
2015-06-23doc: Add newest Rust papersBrian Anderson-2/+29
2015-06-23Add some more headers to installation documentationsDirkjan Ochtman-0/+6
In particular, I found that the disclaimer (promised in the second paragraph) doesn't stand out right now. I think the extra headers help with scanning this document, and making it easier to discern which steps are relevant to my particular flow through the options.
2015-06-23Auto merge of #26508 - tshepang:stray-code-block, r=blussbors-5/+0
2015-06-22Use a more descriptive variable name.Jake Hickey-3/+3
I'm currently reading the rust book and this variable name tripped me up. Because it was called "input", I thought at first it might contain the line read by read_line(). This new variable name will be more instructive to rust beginners.
2015-06-22book: there are 4 special sectionsTshepang Lekhonkhobe-2/+2