about summary refs log tree commit diff
path: root/src/doc/trpl
AgeCommit message (Collapse)AuthorLines
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
2015-10-13Correct spelling in docsAndrew Paseltiner-6/+6
2015-10-13Fix typo in custom allocator docs.Scott Olson-1/+1
2015-10-13Fix some typosYoshito Komatsu-5/+6
2015-10-12Typo fixDavid Ripton-1/+1
2015-10-12Fix Lifetime Elision link in lifetimes.mdChris C Cerami-1/+1
2015-10-12typoDan W.-1/+1
2015-10-12Fix docs about borrowing and lifetimesFabiano Beselga-2/+2
2015-10-11Auto merge of #28969 - chrisccerami:link_to_ffi_in_concurrency_chapter, ↵bors-1/+3
r=steveklabnik
2015-10-11Link to FFI in Concurrency chapterChris C Cerami-1/+3
2015-10-11Fix some typosYoshito Komatsu-3/+3
2015-10-10Auto merge of #28945 - shama:doc-typos, r=steveklabnikbors-1/+1
Just a few typos found in the docs. Thanks!
2015-10-10doc: fixing typosKyle Robinson Young-1/+1
2015-10-10Auto merge of #28922 - panicbit:trpl-missing-docs, r=steveklabnikbors-0/+32
2015-10-10Auto merge of #28930 - steveklabnik:update_pr, r=steveklabnikbors-154/+158
https://github.com/rust-lang/rust/pull/27813#issuecomment-146842041
2015-10-10Auto merge of #28928 - ykomatsu:trpl, r=Manishearthbors-1/+1
2015-10-09Auto merge of #28926 - DanielKeep:syntax-index, r=steveklabnikbors-0/+230
The intent with this chapter is to have a central place where users can go to find out what a random bit of syntax means, be it a keyword, symbol, or some unusual bit of composite syntax (like `for <...>`). This should be useful both for new users (who may not know what to call this weird `'blah` thing), and for experienced users (who may just wish to link someone to the appropriate section on `Trait + Trait` bounds). Where possible, entries have been linked to an appropriate section of the book which explains the syntax. This was not possible in all cases. If an entry is missing links, that's because I was unable to *find* anything appropriate to link to. This commit should include all stable keywords, operators and symbols, as well as a selection of potentially confusing or unusual syntax.
2015-10-09Some tidying upJonathan Hansford-83/+86
Improving the use of 2nd and 3rd person Adding a few contractions to make the text less formal Tidying up some notes Providing a little bit more clarification for Windows users
2015-10-092nd to 3rd personJonathan Hansford-142/+143
Replacing all references to the 2nd person with references to the 3rd person (excluding `authors = [ "Your name <you@example.com>" ]` and `file:///home/yourname/projects/hello_world` in `hello-cargo.md`)
2015-10-09Fix GitHubYoshito Komatsu-1/+1
2015-10-09trpl: mention doc(hidden)panicbit-0/+7
2015-10-09Corrections to syntax index.Daniel Keep-3/+3
* removed reference to struct fields from `mut` description. * changed `..` pattern example to not be syntactically bogus. * changed `@` pattern example for similar reasons. (Thanks petrochenkov)
2015-10-09trpl: missing documentation wordingpanicbit-2/+2
2015-10-09Expanded entries for generics.Daniel Keep-3/+6
* Now mentions method generics. * Has separate entries for generic `fn`, `struct`, `enum`, and `impl` items. (Thanks killercup).
2015-10-09Introduces a "Syntax Index" chapter to TRPL.Daniel Keep-0/+227
The intent with this chapter is to have a central place where users can go to find out what a random bit of syntax means, be it a keyword, symbol, or some unusual bit of composite syntax (like `for <...>`). This should be useful both for new users (who may not know what to call this weird `'blah` thing), and for experienced users (who may just wish to link someone to the appropriate section on `Trait + Trait` bounds). Where possible, entries have been linked to an appropriate section of the book which explains the syntax. This was not possible in all cases. If an entry is missing links, that's because I was unable to *find* anything appropriate to link to. This commit should include all stable keywords, operators and symbols, as well as a selection of potentially confusing or unusual syntax.
2015-10-09Auto merge of #28869 - alexcrichton:allocator-dox, r=steveklabnikbors-0/+171
This adds a chapter to the nightly section of the book on leveraging and implementing the `#![allocator]` attribute to write custom allocators as well as explaining the current situation with allocators.
2015-10-09Auto merge of #28817 - dcarral:installing_rust_v130, r=brsonbors-8/+3
Update "Installing Rust" section @ TRPL so it references the last stable version, v1.3.0.
2015-10-09trpl: mention missing_docs lintpanicbit-0/+25
2015-10-08Auto merge of #28900 - cristicbz:typos, r=alexcrichtonbors-2/+2
I found these automatically, but fixed them manually to ensure the semantics are correct. I know things like these are hardly important, since they only marginally improve clarity. But at least for me typos and simple grammatical errors trigger an---unjustified---sense of unprofessionalism, despite the fact that I make them all the time and I understand that they're the sort of thing that is bound to slip through review. Anyway, to find most of these I used: * `ag '.*//.*(\b[A-Za-z]{2,}\b) \1\b'` for repeated words * `ag '\b(the|this|those|these|a|it) (a|the|this|those|these|it)\b'` to find constructs like 'the this' etc. many false positives, but not too hard to scroll through them to actually find the mistakes. * `cat ../../typos.txt | paste -d'|' - - - - - - - - - - - - - - - - - - - - - - | tr '\n' '\0' | xargs -0 -P4 -n1 ag`. Hacky way to find misspellings, but it works ok. I got `typos.txt` from [Wikipedia](https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines) * `ag '.*//.* a ([ae][a-z]|(o[^n])|(i[a-rt-z]))'` to find places where 'a' was followed by a vowel (requiring 'an' instead). I also used a handful more one off regexes that are too boring to reproduce here.
2015-10-08book: Add documentation on custom allocatorsAlex Crichton-0/+171
This adds a chapter to the nightly section of the book on leveraging and implementing the `#![allocator]` attribute to write custom allocators as well as explaining the current situation with allocators.
2015-10-08typos: fix a grabbag of typos all over the placeCristi Cobzarenco-2/+2