From 5f9cac1d17bf1d2ffa3ef6d06c2c0f0d83add30a Mon Sep 17 00:00:00 2001 From: sgrekhov Date: Wed, 22 May 2024 15:25:52 +0300 Subject: [PATCH 1/3] [wildcard-variables] Fix typo in 'imports' example. --- working/wildcards/feature-specification.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/working/wildcards/feature-specification.md b/working/wildcards/feature-specification.md index b6485fa63..f0039d8ba 100644 --- a/working/wildcards/feature-specification.md +++ b/working/wildcards/feature-specification.md @@ -166,7 +166,7 @@ because the function is unreachable. ```dart // a.dart -extension on String { +extension MyString on String { bool get isBlank => trim().isEmpty; } ``` @@ -181,7 +181,7 @@ main() { ``` Import prefixes named `_` are non-binding and will provide access to the -extensions in that library. +non-private extensions in that library. ### Other declarations From bd8ccf3a6f4c4082ca63e756501a405eefe83819 Mon Sep 17 00:00:00 2001 From: sgrekhov Date: Wed, 22 May 2024 15:29:50 +0300 Subject: [PATCH 2/3] Improve extension name --- working/wildcards/feature-specification.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/working/wildcards/feature-specification.md b/working/wildcards/feature-specification.md index f0039d8ba..d2080d47c 100644 --- a/working/wildcards/feature-specification.md +++ b/working/wildcards/feature-specification.md @@ -166,7 +166,7 @@ because the function is unreachable. ```dart // a.dart -extension MyString on String { +extension ExtendedString on String { bool get isBlank => trim().isEmpty; } ``` From 41138a4cc955089f36850d5b748835acab247fee Mon Sep 17 00:00:00 2001 From: sgrekhov Date: Thu, 23 May 2024 10:43:56 +0300 Subject: [PATCH 3/3] Improve wording --- working/wildcards/feature-specification.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/working/wildcards/feature-specification.md b/working/wildcards/feature-specification.md index d2080d47c..aefd460a8 100644 --- a/working/wildcards/feature-specification.md +++ b/working/wildcards/feature-specification.md @@ -180,7 +180,7 @@ main() { } ``` -Import prefixes named `_` are non-binding and will provide access to the +Import prefixes named `_` are non-binding but will provide access to the non-private extensions in that library. ### Other declarations