Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wildcard-variables] Fix typo in 'imports' example. #3827

Merged
merged 3 commits into from
May 23, 2024

Conversation

sgrekhov
Copy link
Contributor

Unnamed (and private) extensions are non visible after the import. To make the example valid an extension should have a name

@@ -181,7 +181,7 @@ main() {
```

Import prefixes named `_` are non-binding and will provide access to the
Copy link
Member

@lrhn lrhn May 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say "but" instead of "and" here. Maybe even "but will still"

The part after "and" is how non-_ prefixes work too, so erasing it should make no difference.
It's there for emphasis, saying that even though _ does not introduce a name for the imports, the extensions still work.

(But doesn't have to be this PR. Change looks good.)

@lrhn lrhn requested a review from kallentu May 22, 2024 15:47
Copy link
Member

@kallentu kallentu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah thanks for catching this.

@sgrekhov
Copy link
Contributor Author

Changed "and" -> "but"

@kallentu kallentu merged commit 8194951 into dart-lang:main May 23, 2024
3 checks passed
lrhn pushed a commit that referenced this pull request Jun 28, 2024
* [wildcard-variables] Fix typo in 'imports' example.

* Improve extension name

* Improve wording
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants