Skip to content

Commit

Permalink
Clarify confusing wording in Classes > Instance variables (#5849)
Browse files Browse the repository at this point in the history
Fixes #5824
  • Loading branch information
MaryaBelanger authored May 30, 2024
1 parent 4c02068 commit 008db87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/misc/lib/language_tour/classes/point_this.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ class Point {
// OK, can access `this` in `late` initializer:
late double? z = this.x;

// OK, `this.fieldName` is a parameter declaration, not an expression:
// OK, `this.x` and `this.y` are parameter declarations, not expressions:
Point(this.x, this.y);
}
2 changes: 1 addition & 1 deletion src/content/language/classes.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ class Point {
// OK, can access `this` in `late` initializer:
late double? z = this.x;
// OK, `this.fieldName` is a parameter declaration, not an expression:
// OK, `this.x` and `this.y` are parameter declarations, not expressions:
Point(this.x, this.y);
}
```
Expand Down

0 comments on commit 008db87

Please sign in to comment.