From 234e75847a43f0bb0bb03d15ae576a36aed0e20f Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Tue, 18 Oct 2016 18:33:35 -0400 Subject: [PATCH] Make notes since we now know 1.14 will have the question mark --- .travis.yml | 4 ++-- src/ch09-02-recoverable-errors-with-result.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index afe057519..9d81f13e3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,9 +4,9 @@ cache: cargo rust: - nightly # - beta -# ^ to be changed once question_mark is in beta +# ^ to be changed once question_mark is in beta: 1.14 # - stable -# ^ to be changed once question_mark becomes stable +# ^ to be changed once question_mark becomes stable: 1.14 before_script: - (cargo install mdbook || true) script: diff --git a/src/ch09-02-recoverable-errors-with-result.md b/src/ch09-02-recoverable-errors-with-result.md index e5dfc2f7c..a898a9293 100644 --- a/src/ch09-02-recoverable-errors-with-result.md +++ b/src/ch09-02-recoverable-errors-with-result.md @@ -239,9 +239,9 @@ username as a `String` inside the `Ok` variant, so that is our success type. This is a very common way of handling errors: propagate them upward until you're ready to deal with them. This pattern is so common in Rust that there is -a macro for it, `try!`, and as of Rust 1.XX , dedicated syntax for it: the question mark +a macro for it, `try!`, and as of Rust 1.14 , dedicated syntax for it: the question mark operator. We could have written the code in Listing 9-5 using the `try!` macro, as in Listing 9-6, and it would have the same functionality as the `match` expressions: