Skip to content

Commit e23cd15

Browse files
authored
[Patterns] Small clarification added (#2655)
1 parent dcbaebe commit e23cd15

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

accepted/future-releases/0546-patterns/feature-specification.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -642,9 +642,9 @@ Field subpatterns can be in one of three forms:
642642
variable with the same name.
643643

644644
As a convenience, the identifier can be omitted and inferred from `pattern`.
645-
The subpattern must be a variable pattern which may be wrapped in a unary
646-
pattern. The field name is then inferred from the name in the variable
647-
pattern. These pairs of patterns are each equivalent:
645+
In this case the subpattern must be a variable pattern which may be wrapped
646+
in a unary pattern. The field name is then inferred from the name in the
647+
variable pattern. These pairs of patterns are each equivalent:
648648

649649
```dart
650650
// Variable:

0 commit comments

Comments
 (0)