We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebf07da commit fb7f211Copy full SHA for fb7f211
src/doc/book/if-let.md
@@ -1,7 +1,7 @@
1
% if let
2
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
+`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
5
and express them in a more convenient way.
6
7
For example, let’s say we have some sort of `Option<T>`. We want to call a function
0 commit comments