Skip to content

Commit a8d61af

Browse files
committed
0000-let-else.md: Typo fix: s/parenthesis/parentheses/ (when referring to a pair)
1 parent b13e3ec commit a8d61af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

text/0000-let-else.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,15 +209,15 @@ let (each, binding) = match expr {
209209
```
210210

211211
Most expressions may be put into the expression position with two restrictions:
212-
1. May not end with a `}` (before macro expansion). (Such things must be put in parenthesis.)
212+
1. May not end with a `}` (before macro expansion). (Such things must be put in parentheses.)
213213
2. May not be just a lazy boolean expression (`&&` or `||`). (Must not be a [`LazyBooleanExpression`][lazy-boolean-operators].)
214214

215215
While allowing e.g. `if {} else {}` directly in the expression position is technically feasible this RFC proposes it be
216216
disallowed for programmer clarity so as to avoid `... else {} else {}` situations as discussed in the [drawbacks][] section.
217217
Boolean matches are not useful with let-else and so lazy boolean expressions are disallowed for reasons noted in [future-possibilities][].
218-
These types of expressions can still be used when combined in a less ambiguous manner with parenthesis,
218+
These types of expressions can still be used when combined in a less ambiguous manner with parentheses,
219219
which is allowed under the two expression restrictions.
220-
Invisible groupings from macros expansions are also allowed, however macro expansion representations to humans should include parenthesis
220+
Invisible groupings from macros expansions are also allowed, however macro expansion representations to humans should include parentheses
221221
around the expression output in this position if it ends in a `}` where possible (or otherwise show the invisible grouping).
222222

223223
Any refutable pattern that could be put into if-let's pattern position can be put into let-else's pattern position.

0 commit comments

Comments
 (0)