From a47388f1a0226c2fbce507ef7cb4e4f8bc287261 Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Mon, 17 Oct 2016 17:24:42 -0400 Subject: [PATCH] Ooops, forgot to remove some parens --- src/ch06-02-match.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ch06-02-match.md b/src/ch06-02-match.md index 003e7dd59..ab46d4ced 100644 --- a/src/ch06-02-match.md +++ b/src/ch06-02-match.md @@ -210,7 +210,7 @@ Listing 6-4: A function that uses a `match` expression on an `Option` #### Matching `Some(T)` -Let's examine the first execution of `plus_one()` in more detail. In the above +Let's examine the first execution of `plus_one` in more detail. In the above example when we call `plus_one(five)`, the variable `x` in the body of `plus_one` will have the value `Some(5)`. We compare that against each match arm: @@ -232,7 +232,7 @@ and create a new `Some` value with our total `6` inside. #### Matching `None` -Now let's consider the second call of `plus_one()` where `x` is `None`. We +Now let's consider the second call of `plus_one` where `x` is `None`. We enter the `match`, and compare to the first arm: ```rust,ignore @@ -252,7 +252,7 @@ consistently a user favorite. ### Matches are Exhaustive There's one other aspect of `match` we haven't discussed. Consider this version -of our `plus_one()` function: +of our `plus_one` function: ```rust,ignore fn plus_one(x: Option) -> Option {