Skip to content

Commit

Permalink
[wildcard-variables] Fix typo in 'imports' example. (dart-lang#3827)
Browse files Browse the repository at this point in the history
* [wildcard-variables] Fix typo in 'imports' example.

* Improve extension name

* Improve wording
  • Loading branch information
sgrekhov authored May 23, 2024
1 parent 37e7d3c commit 8194951
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions working/wildcards/feature-specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ because the function is unreachable.

```dart
// a.dart
extension on String {
extension ExtendedString on String {
bool get isBlank => trim().isEmpty;
}
```
Expand All @@ -180,8 +180,8 @@ main() {
}
```

Import prefixes named `_` are non-binding and will provide access to the
extensions in that library.
Import prefixes named `_` are non-binding but will provide access to the
non-private extensions in that library.

### Other declarations

Expand Down

0 comments on commit 8194951

Please sign in to comment.