summary refs log tree commit diff
path: root/src/doc/trpl
AgeCommit message (Collapse)AuthorLines
2015-10-27Auto merge of #29326 - Charlotteis:patch-1, r=steveklabnikbors-4/+4
The beginning of the work that needs to be done as part of #28835. :sunny:
2015-10-27Auto merge of #29309 - rjbs:doc-comment-sections, r=alexcrichtonbors-37/+35
As displayed before this commit, I found the book confusing in its explanation of `#`-led comments in `rust` blocks. Possibly the biggest confusion was because the many-dashes construct does not become an HR element in the Markdown translator used, so things were not being properly set off. This change should more clearly show the as-rendered content as rendered, and the as-coded content as code.
2015-10-26Remove use of 'just' in trpl/installing-rust.mdCharlotte Spencer-4/+4
The beginning of the work that needs to be done as part of #28835.
2015-10-26Auto merge of #29280 - Ryman:bad_docattr, r=Manishearthbors-1/+1
As is, this attr would lead to the "///" prefix being in the output text.
2015-10-26Auto merge of #29247 - dcarral:missing_word_trpl, r=steveklabnikbors-1/+1
I somehow missed a word behind the numbers while going through this section, don't know what the best approach would be though since "**available** addresses" sounds good to me, too".
2015-10-25reformat the docs for hidden code in rust sectionsRicardo Signes-37/+35
As displayed before this commit, I found the book confusing in its explanation of `#`-led comments in `rust` blocks. Possibly the biggest confusion was because the many-dashes construct does not become an HR element in the Markdown translator used, so things were not being properly set off. This change should more clearly show the as-rendered content as rendered, and the as-coded content as code.
2015-10-24Fix docattr to match surrounding textKevin Butler-1/+1
As is, this attr would lead to the "///" prefix being in the output text
2015-10-23Add missing word to TRPL's 'The Heap' sectionDaniel Carral-1/+1
2015-10-23Auto merge of #29194 - chrisccerami:clarify-headers-in-traits-docs, ↵bors-6/+16
r=Manishearth It's possible that there is some meaning I'm not grasping from the headers "Traits bounds for generic functions" and "Traits bounds for generic structs", but they seem to me like they could be clearer and more grammatically correct.
2015-10-23Define bounds in glossary.mdChris C Cerami-6/+16
2015-10-22Rollup merge of #29207 - ykomatsu:trpl, r=steveklabnikSteve Klabnik-3/+3
2015-10-22Rollup merge of #29193 - kini:filename-conventions, r=alexcrichtonSteve Klabnik-2/+3
When reading this paragraph, the beginning Rust programmer is starting to write a Hello World program. We have just told her to name the file `main.rs`, and immediately afterward, a `hello_world.rs` is mentioned. I changed this to an unrelated filename (incidentally one that appears in this repository) to make it clear that this is just an example. Also, wording it as a declarative sentence rather than an imperative one further separates it from the Hello World instructions in this section. r? @steveklabnik (Let me know if I'm sending too many PRs -- I can batch up TRPL edits, say, per chapter, if that works better. Or I can just refrain from editing TRPL as I read through it, if these are not sufficiently useful.)
2015-10-22Rollup merge of #29170 - kini:curl-sh-disclaimer, r=steveklabnikSteve Klabnik-5/+9
The paragraph here seemed confusing, so I reworded it. Also added another possible reason why `curl | sh` might be objectionable to users. r? @steveklabnik
2015-10-22Auto merge of #29018 - tsion:doc-typo, r=steveklabnikbors-1/+1
r? @steveklabnik
2015-10-22Correct a previous patchYoshito Komatsu-1/+1
2015-10-21Auto merge of #29138 - ykomatsu:trpl2, r=Manishearthbors-8/+8
2015-10-21Fix some typos in TRPLYoshito Komatsu-3/+3
2015-10-21Auto merge of #29017 - ykomatsu:trpl, r=steveklabnikbors-5/+6
2015-10-21Auto merge of #29055 - alexcrichton:tiers, r=steveklabnikbors-15/+84
This commit expands the "supported platforms" section of the book to include documentation on the tiers that Rust currently has as well as organizing all supported platforms into these various tiers. Infrastructure improvements over the next few months are likely to change the location of may of these platforms over, but for now this should faithfully represent what we've got today!
2015-10-20Change headers in Traits section of the bookChris C Cerami-2/+2
2015-10-20Remove reference to `hello_world.rs` in TRPL §2.2Keshav Kini-2/+3
When reading this paragraph, the beginning Rust programmer is starting to write a Hello World program. We have just told her to name the file `main.rs`, and immediately afterward, a `hello_world.rs` is mentioned. I changed this to an unrelated filename (incidentally one that appears in this repository) to make it clear that this is just an example. Also, wording it as a declarative sentence rather than an imperative one further separates it from the Hello World instructions in this section.
2015-10-20doc: Clarify supported platforms and tiersAlex Crichton-15/+84
This commit expands the "supported platforms" section of the book to include documentation on the tiers that Rust currently has as well as organizing all supported platforms into these various tiers. Infrastructure improvements over the next few months are likely to change the location of may of these platforms over, but for now this should faithfully represent what we've got today!
2015-10-19Replace -- with —Keshav Kini-1/+1
2015-10-19Rollup merge of #29168 - aarzee:master, r=steveklabnikSteve Klabnik-11/+11
Remove leading newlines; replace lines containing only whitespace with empty lines; replace multiple trailing newlines with a single newline; remove trailing whitespace in lines. This PR was created semiautomatically.
2015-10-19Reword `curl | sh` disclaimer in TRPL §2.1Keshav Kini-5/+9
The paragraph here seemed confusing, so I reworded it. Also added another possible reason why `curl | sh` might be objectionable to users.
2015-10-19Clean whitespaceCarlos Liam-11/+11
Remove leading newlines; replace lines containing only whitespace with empty lines; replace multiple trailing newlines with a single newline; remove trailing whitespace in lines
2015-10-19Made the example capable of consistent deadlockingIrving A.J. Rivas Z.-3/+10
To augment the didactic effect, made placed the thread::sleep_ms call in the last example, so that there will be time for the other locks to happen; without this, I was unable to observe the deadlock in over 1,000 runs when there was no left-handed philosopher.
2015-10-19Change to avoid repeated "is"Yoshito Komatsu-5/+5
2015-10-18Fix some typosYoshito Komatsu-4/+4
2015-10-17Auto merge of #29105 - billpmurphy:master, r=alexcrichtonbors-4/+3
Change the spacing/order of lines in the final pointer conversion example to make it more clear. Very small change, can be rolled up.
2015-10-17Auto merge of #29089 - kickinbahk:edit-testing-docs, r=steveklabnikbors-0/+3
When going through the docs, it is not clear that binary files cannot be tested. Additionally, it is hard to find the proper structure of a Rust crate and it took me several hours of looking through the docs to find the crates and modules section. I think we can link to it from here and it will be beneficial to those who are coming to the language.
2015-10-16Update the testing doc to be more clear and include dynamic linkkickinbahk-1/+2
Fixed some typos and changed the link to the link to crates-and-modules to be dynamic.
2015-10-16book: Change raw pointer conversion examplebillpmurphy-4/+3
Change the spacing/order of lines in the final pointer conversion example to make it more clear.
2015-10-16Auto merge of #29086 - fhahn:book-update-lint-plugin-example, r=alexcrichtonbors-8/+22
2015-10-16Auto merge of #28957 - GuillaumeGomez:patch-5, r=Manishearthbors-1/+1
cc @nagisa
2015-10-16Change error message in rustbookGuillaume Gomez-1/+1
2015-10-15Add to Testing docs to make more clearkickinbahk-0/+2
When going through the docs, it is not clear that binary files cannot be tested. Additionally, it is hard to find the proper structure of a Rust crate and it took me several hours of looking through the docs to find the crates and modules section. I think we can link to it from here and it will be beneficial to those who are coming to the language.
2015-10-15Update lint plugin example in book to work with recent masterFlorian Hahn-8/+22
2015-10-15Rollup merge of #29066 - dcarral:fix_issue_29063, r=steveklabnikManish Goregaokar-7/+7
Regarding [#29063 _[Docs] Terminology inconsistency between 'iterator adapters' and 'iterator adaptors'_](https://github.com/rust-lang/rust/issues/29063) : This PR replaces 'iterator adapters' appearances (in TRPL book) to 'iterator adaptors', thus embracing the terminology used along the API docs and achieving consistency between both sources.
2015-10-15Rollup merge of #29062 - rgardner:rgardner-fix-book-comp-warning, r=alexcrichtonManish Goregaokar-1/+1
Before this commit, the first "A Rust library" code sample produced the following compilation warning: ``` test.rs:7:22: 7:36 warning: unnecessary parentheses around `for` head expression, #[warn(unused_parens)] on by default test.rs:7 for _ in (0..5_000_000) { ``` This commit just removes the parens around the range 0..5_000_000 thereby removing the compilation warning.
2015-10-15Rollup merge of #29060 - tshepang:consistency, r=nikomatsakisManish Goregaokar-1/+1
2015-10-15Rollup merge of #29059 - tshepang:typo, r=nikomatsakisManish Goregaokar-1/+1
2015-10-15Rollup merge of #29022 - apasel422:spell, r=steveklabnikManish Goregaokar-6/+6
r? @steveklabnik
2015-10-15Replace 'adapters' to 'adaptors' in TRPL bookDaniel Carral-7/+7
Regarding #29063: Replace 'iterator adapters' appearances to 'iterator adaptors', thus embracing the terminology used along the API docs and achieving consistency between both sources.
2015-10-15book: be consistent with preceding exampleTshepang Lekhonkhobe-1/+1
2015-10-15book: fix typoTshepang Lekhonkhobe-1/+1
2015-10-14Resolve unused_parens compilation warningRobert Gardner-1/+1
Before this commit, the first "A Rust library" code sample produced the following compilation warning: ``` test.rs:7:22: 7:36 warning: unnecessary parentheses around `for` head expression, #[warn(unused_parens)] on by default test.rs:7 for _ in (0..5_000_000) { ``` This commit just removes the parens around the range 0..5_000_000.
2015-10-14Rollup merge of #29013 - chrisccerami:fix_broken_lifetime_elision_link, ↵Manish Goregaokar-1/+1
r=alexcrichton This link was added in #28842 but doesn't work at https://doc.rust-lang.org/nightly/book/lifetimes.html. What works in my markdown preview doesn't work live, and vice versa.
2015-10-13Rollup merge of #29015 - dripton:master, r=alexcrichtonSteve Klabnik-1/+1
Just a single-character typo fix.
2015-10-13Rollup merge of #29007 - dnwade:patch-2, r=alexcrichtonSteve Klabnik-1/+1
r? @steveklabnik