File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -521,9 +521,9 @@ test whether the bound values satisfy some predicate.
521521
522522A `when` clause takes a lazy expression, and invokes the handler only
523523if the expression evaluates to `true`. A lazy expression is an expression
524- formed with identifier patterns. For example, given an identifier `x`,
525- the expression `x % 5 == 0` is a lazy expression where the `x` is filled
526- in by the value that the identifier `x` matches.
524+ formed with identifier patterns. For example, given an identifier pattern
525+ `x`, the expression `x % 5 == 0` is a lazy expression where the `x` is
526+ filled in by the value that the identifier `x` matches.
527527
528528#### Requirements
529529
@@ -532,7 +532,7 @@ convertible to `bool`.
532532
533533#### Syntax
534534
535- - `pattern(<pattern>...) .when(<lazy_expr>)`
535+ - `.when(<lazy_expr>)`
536536
537537#### Examples
538538
You can’t perform that action at this time.
0 commit comments