about summary refs log tree commit diff
path: root/src/doc/trpl
AgeCommit message (Collapse)AuthorLines
2015-09-30Cross-reference doc chapter from testing chapterSteve Klabnik-0/+2
We don't completely cover documentation tests in the testing chapter, since we cover them in the documentation chapter. So make sure people know that. Fixes #28082
2015-09-30Call out slicing syntax more explicitlySteve Klabnik-3/+8
Fixes #28359
2015-09-30Improve wording in error handling guideSteve Klabnik-2/+2
The original blog post referred to examples by their file names, and now that it's in guide form, there is no file name. So edit the text so that it makes a bit more sense. Fixes #28428
2015-09-30Fix module links in std::fmt and the Rust book's documentation chapter.Ted Mielczarek-2/+2
The links in the rustdoc for several places in fmt were trying to link to the std::fmt module but actually linking to std, which was confusing. While trying to figure out why I noticed that the documentation chapter of the Rust book has examples that show this same bug (although it doesn't seem widespread in practice).
2015-09-30Update no_std docsSteve Klabnik-18/+20
This is part of #28572, but doesn't complete it. Amongst other things, this patch: * Increases consistency in the way feature flags are used with other docs. * Removes the ignores, which is nice: we actually had some syntax errors in the examples :sob:. * Mentions #![no_core] Realistically, this document used to be in the order of least to most: nothing, then adding core. But with the changes in RFC 1184, this is backwards: it now shows stuff that uses core from the beginning. In the future, I'd like to revamp this to go from 'most to least', but I'd like to see the discussion in https://github.com/rust-lang/rust/issues/27701 goes before I write more.
2015-09-30libcxxabi is no longer necessary for libunwindAidan Hobson Sayers-2/+0
2015-09-30Improve "Variable bindings" chapterJan Likar-8/+91
- Expand the first paragraph - Improve readability by partitioning the chapter into the following sections: "Patterns", "Type annotations", "Mutability", and "Initializing bindings" - Add "Scope and shadowing" section (fix #28177)
2015-09-28remove a sentence #28701Willy Aguirre-2/+1
2015-09-26Rollup merge of #28679 - xaviershay:book-unit-example, r=steveklabnikSteve Klabnik-0/+2
This was non-obvious to me: with no example, I assumed `Electron {}` and didn't know what else to try when it didn't work. The correct form is weird because it looks like you're assigning the struct name rather than an instance of the struct. r? @steveklabnik
2015-09-26Add an example of constructing a unit-like struct.Xavier Shay-0/+2
This was non-obvious to me: with no example, I assumed `Electron {}` and didn't know what else to try when it didn't work. The correct form is weird because it looks like you're assigning the struct name rather than an instance of the struct.
2015-09-26clarify that `find` returns first matchDavid Elliott-4/+5
the example for `find` was misleading in that it fails to mention the result is either `None` or `Some` containing only the first match. Further confusing the issue is the `println!` statement, "We got some numbers!"
2015-09-25Rollup merge of #28655 - alfiedotwtf:patch-2, r=sanxiynSteve Klabnik-3/+3
2015-09-25Rollup merge of #28588 - critiqjo:trpl-closure, r=steveklabnikSteve Klabnik-16/+17
r? @steveklabnik
2015-09-25Keep examples consistentAlfie John-3/+3
2015-09-25trpl: Refactor returning closures sectioncritiqjo-16/+17
2015-09-21Update error-handling.mdReza Akhavan-1/+1
2015-09-21TRPL: Fix typoBastien Dejean-1/+1
2015-09-21Auto merge of #28541 - baskerville:trpl-two-typos, r=steveklabnikbors-2/+2
r? @steveklabnik
2015-09-20TRPL: Fix two typosBastien Dejean-2/+2
2015-09-20Auto merge of #28499 - semmaz:doc-anchor-fix, r=steveklabnikbors-27/+27
This changes how rustic generate `id` and `href` attributes for section header anchor. Now they are more github-like. Also fixes breakage in docs caused by this and broken links in "Error Handling" section of book. r? @steveklabnik cc @alexcrichton
2015-09-20doc: Fix broken linksSimon Mazur-27/+27
2015-09-20Rollup merge of #28525 - Wallacoloo:book-4.8-double-more, r=steveklabnikManish Goregaokar-1/+1
This is a simple grammar fix in which the previous author accidentally repeated a word when (s)he shouldn't have.
2015-09-20Rollup merge of #28463 - critiqjo:book-concurrency, r=steveklabnikManish Goregaokar-31/+28
Fixes #28458 Details about `Arc` may be too soon to be described together with `Sync`... Tell me what you think. r? @steveklabnik
2015-09-19Fix "more more" typoColin Wallace-1/+1
2015-09-19trpl: Improve clarity in Concurrencycritiqjo-31/+28
2015-09-19Rollup merge of #28496 - davidszotten:fix_error_anchors, r=steveklabnikSteve Klabnik-11/+24
2015-09-19Rollup merge of #28485 - Wallacoloo:clarify-let-lhs, r=alexcrichtonSteve Klabnik-1/+1
In code like `let x = 5`, I am initially confused as to the meaning of "let doesn't take a name on the left hand side, it actually accepts a pattern." - I interpret that as the pattern being located as: `<pattern> let [...]`. I think what is meant is that the name/pattern is on the left hand side *of the assignment*, rather than to the left of the *let* statement. This change clarifies that.
2015-09-19change back to anchors; divs break mdDavid Szotten-18/+18
2015-09-19missing punctuationDavid Szotten-1/+1
2015-09-19its vs it'sDavid Szotten-1/+1
2015-09-19wrap more referenced code blocks in divsDavid Szotten-0/+14
2015-09-19angle brackets get mis-parsed. bug?David Szotten-1/+1
2015-09-19link needs puncuationDavid Szotten-2/+2
2015-09-18remove preceeding blank lineDavid Szotten-1/+0
2015-09-18fix anchor linkDavid Szotten-1/+1
2015-09-18Use divs with ids rather than as with names.Ms2ger-2/+4
The id attribute has been an official part of HTML since 1997. There is no reason not to use it.
2015-09-17Clarify where let accepts a pattern, spatiallyColin Wallace-1/+1
2015-09-17Rollup merge of #28466 - baskerville:trpl-heap-highest-addr, r=steveklabnikSteve Klabnik-86/+86
r? @steveklabnik
2015-09-17Rollup merge of #28451 - dagnir:osx-req-wording, r=steveklabnikSteve Klabnik-1/+1
Using "later" in this context makes more sense than "greater" so it's been changed to match the Linux requirement above it rather than the other way around.
2015-09-17Rollup merge of #28422 - christopherdumas:label_code, r=steveklabnikSteve Klabnik-1/+4
2015-09-17Rollup merge of #28276 - jackwilsonv:patch-5, r=ManishearthSteve Klabnik-3/+3
2015-09-17trpl: Fix off-by-one highest memory addressBastien Dejean-86/+86
2015-09-16Change OSX version req wording to match Linux.Dongie Agnir-1/+1
2015-09-15Fixe headingchristopherdumas-1/+1
2015-09-15Fix option link and anchor links.christopherdumas-7/+6
2015-09-15Added anchors for the code snippets.christopherdumas-0/+3
2015-09-15Fix option link and anchor links.christopherdumas-5/+4
2015-09-13Update musl build in light of llvm 3.7 releaseAidan Hobson Sayers-17/+14
2015-09-12TRPL: Fix Headlines, Links in "Error Handling"Pascal Hertleif-36/+39
- Headlines begin at 1st level now like the rest of the book - All Headlines a blank line above and below - Fix links in this chapter's TOC
2015-09-10Auto merge of #28301 - christopherdumas:intergrate_error_burnstushi, ↵bors-181/+2007
r=steveklabnik This was @steveklabnik's idea. Thanks @BurntSushi for the awesome blog post! r? @steveklabnik