Skip to content

Commit 2a305b0

Browse files
committed
Fix primary constructors examples in "Private Named Parameters".
1 parent 1a2b659 commit 2a305b0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

working/2509-private-named-parameters/feature-specification.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ becomes:
5050

5151
```dart
5252
class House({
53-
this._windows,
54-
this._bedrooms,
55-
this._swimmingPools,
53+
var int? _windows,
54+
var int? _bedrooms,
55+
var int? _swimmingPools,
5656
});
5757
```
5858

@@ -262,9 +262,9 @@ When this proposal is combined with primary constructors, they can write:
262262

263263
```dart
264264
class House({
265-
int? _windows,
266-
int? _bedrooms,
267-
int? _swimmingPools,
265+
var int? _windows,
266+
var int? _bedrooms,
267+
var int? _swimmingPools,
268268
});
269269
```
270270

0 commit comments

Comments
 (0)