diff options
| author | bluecereal <singedsalami@gmail.com> | 2017-02-05 20:20:43 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-05 20:20:43 -0500 |
| commit | fb7f211c0c0723c84d9f5da58e80a7766478b616 (patch) | |
| tree | 783dfe4050e4100f2dc5a6ab496f9a6632d72165 | |
| parent | ebf07da0a502acba5fe29b085c3244834e4e3bf5 (diff) | |
| download | rust-fb7f211c0c0723c84d9f5da58e80a7766478b616.tar.gz rust-fb7f211c0c0723c84d9f5da58e80a7766478b616.zip | |
Update if-let.md
| -rw-r--r-- | src/doc/book/if-let.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/book/if-let.md b/src/doc/book/if-let.md index 2231dddf204..e76149ad270 100644 --- a/src/doc/book/if-let.md +++ b/src/doc/book/if-let.md @@ -1,7 +1,7 @@ % if let -`if let` allows us to match [patterns][patterns] within the condition of an [if][if]. -As a consequence, we reduce the overhead of certain kinds of [pattern][patterns] matches +`if let` permits [patterns][pattern] matching within the condition of an [if][if] statement. +This allows us to reduce the overhead of certain kinds of [pattern][patterns] matches and express them in a more convenient way. For example, let’s say we have some sort of `Option<T>`. We want to call a function |
