Skip to content

Commit fb7f211

Browse files
authored
Update if-let.md
1 parent ebf07da commit fb7f211

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/book/if-let.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
% if let
22

3-
`if let` allows us to match [patterns][patterns] within the condition of an [if][if].
4-
As a consequence, we reduce the overhead of certain kinds of [pattern][patterns] matches
3+
`if let` permits [patterns][pattern] matching within the condition of an [if][if] statement.
4+
This allows us to reduce the overhead of certain kinds of [pattern][patterns] matches
55
and express them in a more convenient way.
66

77
For example, let’s say we have some sort of `Option<T>`. We want to call a function

0 commit comments

Comments
 (0)