summary refs log tree commit diff
path: root/src/doc/trpl/error-handling.md
AgeCommit message (Collapse)AuthorLines
2015-10-22Rollup merge of #29207 - ykomatsu:trpl, r=steveklabnikSteve Klabnik-3/+3
2015-10-22Correct a previous patchYoshito Komatsu-1/+1
2015-10-21Fix some typos in TRPLYoshito Komatsu-3/+3
2015-10-19Change to avoid repeated "is"Yoshito Komatsu-5/+5
2015-10-18Fix some typosYoshito Komatsu-1/+1
2015-10-12Typo fixDavid Ripton-1/+1
2015-10-05docs: anchors fixesSimon Mazur-2/+2
2015-10-04fix another typoSeeker14491-1/+1
2015-10-03fix a few typosSeeker14491-7/+7
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-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-20doc: Fix broken linksSimon Mazur-27/+27
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-17Rollup merge of #28422 - christopherdumas:label_code, r=steveklabnikSteve Klabnik-1/+4
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-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-10Adapted @BurtSushi's blog post for the error handling chapter, rewrite the ↵christopherdumas-181/+2007
case study.
2015-08-24Clarify a sentence in the BookMatěj Grabovský-2/+2
2015-07-13Fixed snippet to return the proper error.Jose Narvaez-1/+3
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-05-30Fixes consistency in before/after examplefrankamp-1/+1
The doc indicates that you can replace 'before' with 'after' showing the use of try!. The two examples should be equivalent, but they are not. In the File::create we were inducing a panic before in case of error, not propagating. It is important for newbies (like myself) to understand that try! propagates failures, while unwrap can induce a panic. The other alternative is to make the 'before' File::create also manually handle Err like the other calls. Either way it would be consistent.
2015-05-18TRPL: Normalize rust Code Block MarkersPascal Hertleif-4/+4
`{rust,ignore}` -> `rust,ignore
2015-05-13trpl/error-handling - fix typoSwaroop C H-1/+1
2015-05-13Add link to Debug traitSwaroop C H-0/+2
I don't recall reading about this `Debug` trait so far in the book.
2015-05-12book: typo fixes, wording improvements.Shmuale Mark-1/+1
The text in iterators.md wasn't wrong, but it read awkwardly to my ear.
2015-05-10Update error-handling.mdIsaac Ge-1/+1
Fix two typos while `io::stdin().read_line()` returns `Result` actually Signed-off-by: acgtyrant <acgtyrant@gmail.com>
2015-05-03=BG= minor: File::open --> File::create in rust bookBrendan Graetz-2/+2
- `FIle::open` is for opening a file in read-only mode - `FIle::create` is for opening a file in write-only mode, which is what we want instead for this example to make sense
2015-04-16remove example usage of from_str in error docsSteve Klabnik-15/+18
Fixes #24185
2015-04-16Fix some broken links in the bookFlorian Hartwig-1/+1
2015-04-13Point to From trait in error handling guidefenduru-1/+1
Not sure if `From<Error>` is the correct way to reference that trait (maybe `From<E: Error>`?)
2015-04-01Fix rust book error-handling.md for new std::io.kgv-6/+7
Fix example and some text for: `read_line` takes `&mut String` and return `Result` instead `IoResult`.
2015-02-24Mention try macro in error chapterSteve Klabnik-0/+72
Fixes #22342
2015-01-29s/Show/Debug/gJorge Aparicio-2/+2
2015-01-17doc: Remove extra whitespace in the middle of lines to provide alignmentNick Howell-6/+6
"Idiomatic code should not use extra whitespace in the middle of a line to provide alignment." http://aturon.github.io/style/whitespace.html I realize the linked page still needs an RFC, but the docs should be written in accordance with the guidelines nevertheless.
2015-01-17Fix up titles of TRPL chaptersSteve Klabnik-1/+1
2015-01-12Purge references to Rust tasks from TRPL.Paul Crowley-2/+2