From 9ad8e67ad7826b4b574e022509b4e7f7d7dd0699 Mon Sep 17 00:00:00 2001 From: David Wickes Date: Sat, 25 Feb 2017 21:59:20 +0000 Subject: [PATCH 1/2] removes blank line that breaks mdbook/ghpages version --- src/ch09-02-recoverable-errors-with-result.md | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ch09-02-recoverable-errors-with-result.md b/src/ch09-02-recoverable-errors-with-result.md index b8cb7c2fe..72424a9db 100644 --- a/src/ch09-02-recoverable-errors-with-result.md +++ b/src/ch09-02-recoverable-errors-with-result.md @@ -450,7 +450,6 @@ fn main() { that doesn't return a result is STILL confusing. Since we want to only explain `?` now, I've changed the example, but if you try running this code you WON'T get the error message below. - I'm bugging people to try and get https://github.com/rust-lang/rust/issues/35946 fixed soon, hopefully before this chapter gets through copy editing-- at that point I'll make sure to update this From 9bbbcad5da918220bb30f2295d5d34d3772bcbe1 Mon Sep 17 00:00:00 2001 From: David Wickes Date: Sat, 25 Feb 2017 22:01:27 +0000 Subject: [PATCH 2/2] corrects typo --- src/ch09-02-recoverable-errors-with-result.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch09-02-recoverable-errors-with-result.md b/src/ch09-02-recoverable-errors-with-result.md index 72424a9db..14579075d 100644 --- a/src/ch09-02-recoverable-errors-with-result.md +++ b/src/ch09-02-recoverable-errors-with-result.md @@ -435,7 +435,7 @@ we defined in Listing 9-5. The part of the `match` that requires a return type of `Result` is `return Err(e)`, so the return type of the function must be a `Result` to be compatible with this `return`. -Let’s look at what happens if use `?` in the `main` function, which you’ll +Let’s look at what happens if we use `?` in the `main` function, which you’ll recall has a return type of `()`: ```rust,ignore