Skip to content

Commit

Permalink
Update if-let.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bluecereal committed Feb 6, 2017
1 parent ebf07da commit fb7f211
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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
Expand Down

0 comments on commit fb7f211

Please sign in to comment.