summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2016-07-04Auto merge of #34602 - Xmasreturns:patch-4, r=steveklabnikbors-0/+6
Update glossary.md Added a brief description of Combinators
2016-07-03Auto merge of #34532 - jonmarkprice:master, r=steveklabnikbors-27/+33
Book: Small grammatical and stylistic edits to book I've been reading [the book](https://doc.rust-lang.org/book/) and noticed a few small grammatical and stylistic issues which I've rolled into this pull request. I'm not sure if I should do so many small, unrelated edits in a single pull request but it seems like a lot of overhead for each small edit. Maybe one commit per edit but one pull request per file/section? Feedback is very much appreciated as this is my first pull request ever! r? @steveklabnik rollup
2016-07-01Update glossary.mdJonathan L-0/+6
Added a brief description of Combinators
2016-06-28used curly instead of straight quotesJonathan Price-1/+1
2016-06-28Merging my book edits recent commits.Jonathan Price-1/+1
2016-06-28took comment out of code blockJonathan Price-3/+5
no reason for a long comment in a code block when we could take it out, especially since it looks like it's using markdown (`struct`, `&` and `lvl`).
2016-06-28fixed typo: term should be termsJonathan Price-1/+1
two terms (input lifetime and output lifetime) so "term" needs to be plural.
2016-06-28Rollup merge of #34442 - tatsuya6502:doc-book-ownership, r=steveklabnikGuillaume Gomez-1/+3
[doc] Fix links in Ownership section of the book - Add a missing link definition for `[i32]`. - Like `[stack]` link is pointing to `...#the-stack`, append `#the-heap` to `[heap]` link.
2016-06-28Rollup merge of #34328 - wuranbo:patch-1, r=steveklabnikGuillaume Gomez-2/+2
Traits where syntax's extra usage example more clearly r? @steveklabnik
2016-06-28Rollup merge of #34287 - durka:patch-26, r=steveklabnikGuillaume Gomez-5/+13
update reference for #29734
2016-06-28Rollup merge of #34080 - royalstream:royalstream-book-june4, r=steveklabnikGuillaume Gomez-10/+7
Syntax coloring and more compact diagram Two cosmetic improvements: - New content was added a few days ago to the **Closures** chapter but it was missing rust's syntax coloring. - Also, in the **Crates and Modules** chapter, a diagram was improved to be more symmetric and to take less space.
2016-06-27many small grammatical and stylistic changesJonathan Price-17/+21
grammatical: "Here's" should be "Here are", "rules" is plural. stylistic: "rules for" is more idiomatic than "rules about". grammatical: No verb in "One or the other"; changed to "It's one or the other". code: added implied `fn main() { ... }` because it is referenced in "note: previous borrow ends here" semantic: "But" seems like the wrong word here, there is now, contrast, only further explanation. "so", "thus" or "therefor" is clearer. grammatical: Another misuse of "Here's", should be "Here are" (or possibly "Here're"). grammatical: "use" should be capitalized. All other subheadings capitalize the first word.
2016-06-27"also ... as well" is redundantJonathan Price-2/+2
Also "to access" is cleaner than "for accessing"
2016-06-27"errors with" is idiomatic in EnglishJonathan Price-1/+1
2016-06-27fixed backquotes and awkward borrowing clauseJonathan Price-3/+3
2016-06-25Rollup merge of #34403 - jonathandturner:move_liberror, r=alexcrichtonJeffrey Seyfried-1/+1
This PR refactors the 'errors' part of libsyntax into its own crate (librustc_errors). This is the first part of a few refactorings to simplify error reporting and potentially support more output formats (like a standardized JSON output and possibly an --explain mode that can work with the user's code), though this PR stands on its own and doesn't assume further changes. As part of separating out the errors crate, I have also refactored the code position portion of codemap into its own crate (libsyntax_pos). While it's helpful to have the common code positions in a separate crate for the new errors crate, this may also enable further simplifications in the future.
2016-06-24[doc] Fix links in Ownership section of the bookTatsuya Kawano-1/+3
2016-06-23Move errors from libsyntax to its own crateJonathan Turner-1/+1
2016-06-23Switched tense to clarify what is happening in the exampleAlfie John-1/+1
2016-06-21Rollup merge of #34378 - liigo:patch-10, r=ManishearthGuillaume Gomez-1/+13
diagnostics comes from different places now
2016-06-20diagnostics comes from different places nowLiigo Zhuang-1/+13
2016-06-19Fixed links in book/compiler-plugins.mdAlexander Stocko-2/+3
2016-06-17Traits where syntax's extra usage example more clearly 吴冉波-2/+2
r? @steveklabnik
2016-06-15include list of charactersAlex Burka-1/+13
2016-06-15update reference for #29734Alex Burka-6/+2
2016-06-14reference: link to proper ffi attributesLiigo Zhuang-1/+1
2016-06-13doc: Fix typoFlorian Berger-1/+1
2016-06-12Auto merge of #34238 - jpreiss:master, r=steveklabnikbors-2/+2
fix typo in primitive-types section on slices
2016-06-11typo fix in loops.mdJames Alan Preiss-1/+1
2016-06-11fix typo in primitive-types section on slicesJames Alan Preiss-1/+1
2016-06-11Auto merge of #34132 - AtheMathmo:no-stdlib, r=steveklabnikbors-4/+20
Note warning of default features on libc The default features of libc include libstd. This should be noted on this page.
2016-06-10Rollup merge of #34129 - jviide:from-string-box-error, r=steveklabnikSeo Sanghyeon-12/+8
Remove a gotcha from book/error-handling.md The book's "Error handling with `Box<Error>`" section talks about `Box<Error>`. In the actual example `Box<Error + Send + Sync>` is used instead so that the corresponding From impls could be used to convert a plain string to an error type. Rust 1.7 added support for conversion from `&str`/`String` to `Box<Error>`, so this gotcha and later references to it can now be removed. r? @steveklabnik
2016-06-09Auto merge of #33895 - AndrewBrinker:master, r=steveklabnikbors-137/+114
Rewrote "How Safe and Unsafe Interact" Nomicon chapter. The previous version of the chapter covered a lot of ground, but was a little meandering and hard to follow at times. This draft is intended to be clearer and more direct, while still providing the same information as the previous version. r? @steveklabnik
2016-06-08Auto merge of #32202 - arielb1:slice-patterns, r=nikomatsakisbors-3/+3
Implement RFC495 semantics for slice patterns non-MIR translation is still not supported for these and will happily ICE. This is a [breaking-change] for many uses of slice_patterns. [RFC 495 text](https://github.com/rust-lang/rfcs/blob/master/text/0495-array-pattern-changes.md)
2016-06-09fix testsAriel Ben-Yehuda-3/+3
2016-06-07Fixed based on feedback from steveklabnikAndrew Brinker-11/+7
2016-06-07Adding sections and brief explanation of libcJames Lucas-7/+20
Have included an example of a Cargo.toml file containing the libc dependency. The file has been reformatted to use sections. The note on the default features warning is part of the _Using libc_ section but is in bold.
2016-06-07Rollup merge of #34138 - hoodie:bug/bool_colors, r=steveklabnikSteve Klabnik-1/+1
Bug/bool colors This is actually #33661 @steveklabnik, sorry about this, github ate my homework
2016-06-07Rollup merge of #34125 - MichaelNecio:book_addition, r=steveklabnikSteve Klabnik-1/+4
Noted that shadowing never destroys a value Fixes issue #33887 r? @steveklabnik
2016-06-07Rollup merge of #34099 - markrcote:functions-copyedit, r=steveklabnikSteve Klabnik-1/+1
Add missing space before parenthesis.
2016-06-07Rollup merge of #34094 - abenga:doc_changes_variable_bindings, r=steveklabnikSteve Klabnik-6/+7
Minor changes to variable bindings chapter * In "*... name as another binding, that's currently in scope, will ...*", *" that's currently in scope"* is not a parenthetical element, and the commas can be omitted. * Other minor changes.
2016-06-07Rollup merge of #34070 - chriskrycho:update-reference-deprecated-attribute, ↵Steve Klabnik-2/+1
r=steveklabnik Update reference to indicate stabilization of `deprecated` attribute. None
2016-06-07Rollup merge of #34060 - JDemler:master, r=steveklabnikSteve Klabnik-4/+10
Improved documentation for tests/ directory This ambigouity problem was already discussed in the [forums](https://users.rust-lang.org/t/problem-using-external-modules-inside-integration-test-submodule/5312/6).
2016-06-07Minor changes to variable bindings chapterHorace Abenga-6/+7
* In "... name as another binding, that's currently in scope, will ...", ", that's currently in scope, " is not a parenthetical element, and the commas can be omitted. * Other minor changes.
2016-06-06Note warning of default features on libcJames Lucas-0/+3
The default features of libc include libstd. This should be noted on this page.
2016-06-07Remove a gotcha from book/error-handling.mdJoachim Viide-12/+8
The book's "Error handling with Box<Error>" section talks about Box<Error>. In the actual example Box<Error + Send + Sync> is used instead so that the corresponding From impls could be used to convert a plain string to an error type. Rust 1.7 added support for conversion from &str/String to Box<Error>, so this gotcha and later references to it can now be removed.
2016-06-06Noted that shadowing never destroys a valueMichael Necio-1/+4
2016-06-05Add missing space before parenthesis.Mark Côté-1/+1
2016-06-05Update reference to indicate stabilization of `deprecated` attribute.Chris Krycho-2/+1
2016-06-04Book: diagram takes less space and it's more symmetric.Steven Burns-5/+2