Skip to content

Commit 25e42d5

Browse files
committed
[patterns] Fix bug in example code.
1 parent efc4639 commit 25e42d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2337,7 +2337,7 @@ sets) is:
23372337
captures a case variable in a closure in the guard:*
23382338

23392339
```dart
2340-
Function captured;
2340+
late Function captured;
23412341
23422342
bool capture(Function closure) {
23432343
captured = closure;

0 commit comments

Comments
 (0)