Skip to content

Commit 8194951

Browse files
authored
[wildcard-variables] Fix typo in 'imports' example. (#3827)
* [wildcard-variables] Fix typo in 'imports' example. * Improve extension name * Improve wording
1 parent 37e7d3c commit 8194951

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

working/wildcards/feature-specification.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ because the function is unreachable.
166166

167167
```dart
168168
// a.dart
169-
extension on String {
169+
extension ExtendedString on String {
170170
bool get isBlank => trim().isEmpty;
171171
}
172172
```
@@ -180,8 +180,8 @@ main() {
180180
}
181181
```
182182

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

186186
### Other declarations
187187

0 commit comments

Comments
 (0)