From 6edf3a35304caac1ec9a6b387907d37fb4065ea4 Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Thu, 22 Dec 2016 18:55:29 -0500 Subject: [PATCH] Fix spelling errors caught by aspell!!!!!!!!! --- src/ch09-02-recoverable-errors-with-result.md | 4 ++-- src/ch09-03-to-panic-or-not-to-panic.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ch09-02-recoverable-errors-with-result.md b/src/ch09-02-recoverable-errors-with-result.md index 02ae4705a..01287cfa7 100644 --- a/src/ch09-02-recoverable-errors-with-result.md +++ b/src/ch09-02-recoverable-errors-with-result.md @@ -339,10 +339,10 @@ into that section to keep that whole discussion together. /Carol ### Propagating Errors -When writing a function whose implementation calls sometheing that might fail, +When writing a function whose implementation calls something that might fail, instead of handling the error within this function, you can choose to let your caller know about the error so they can decide what to do. This is known as -*propogating* the error, and gives more control to the calling code where there +*propagating* the error, and gives more control to the calling code where there might be more information or logic that dictates how the error should be handled than what you have available in the context of your code. diff --git a/src/ch09-03-to-panic-or-not-to-panic.md b/src/ch09-03-to-panic-or-not-to-panic.md index 780a08d6d..cfb588c71 100644 --- a/src/ch09-03-to-panic-or-not-to-panic.md +++ b/src/ch09-03-to-panic-or-not-to-panic.md @@ -66,7 +66,7 @@ here. However, having a hardcoded, valid string doesn't change the return type of the `parse` method: we still get a `Result` value, and the compiler will still make us handle the `Result` as if the `Err` variant is still a possibility since the compiler isn't smart enough to see that this string is always a -parseable IP address. If the IP address string came from a user instead of being +parsable IP address. If the IP address string came from a user instead of being hardcoded into the program, and therefore *did* have a possibility of failure, we'd definitely want to handle the `Result` in a more robust way instead.