Skip to content

Commit 749404d

Browse files
authored
[Patterns] Fixed typo in the variable declaration scope example (#2790)
1 parent f2bf367 commit 749404d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2228,8 +2228,8 @@ appears:
22282228
print(c);
22292229
// ^ Error: Refers to C declared below:
22302230
2231-
var [c] = c;
2232-
// ^ Error: Not initialized yet.
2231+
var [c] = [c];
2232+
// ^ Error: Not initialized yet.
22332233
22342234
print(c);
22352235
// ^ OK.

0 commit comments

Comments
 (0)