From 5d5e62d7d88a9c263ddcd5f942b151e066f3d27b Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Thu, 15 Oct 2015 00:16:13 +0200 Subject: [PATCH] book: fix typo --- src/doc/trpl/if-let.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/trpl/if-let.md b/src/doc/trpl/if-let.md index 4872ed6a773..332498ce0f4 100644 --- a/src/doc/trpl/if-let.md +++ b/src/doc/trpl/if-let.md @@ -41,7 +41,7 @@ If a [pattern][patterns] matches successfully, it binds any appropriate parts of the value to the identifiers in the pattern, then evaluates the expression. If the pattern doesn’t match, nothing happens. -If you’d rather to do something else when the pattern does not match, you can +If you want to do something else when the pattern does not match, you can use `else`: ```rust