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

Mention help about confusing fields / methods #1

Open
nikomatsakis opened this issue May 25, 2017 · 1 comment
Open

Mention help about confusing fields / methods #1

nikomatsakis opened this issue May 25, 2017 · 1 comment

Comments

@nikomatsakis
Copy link
Owner

@Nashensas88 commented:

If we do leave it in, is this the right place to mention that the existing help span should be extended? There's one in place now that will recognize a field is a closure and rewrites your code with the parenthesis as a suggestion.

This is a good point! Specifically, we should mention in the "How do we teach this?" section that we would want to extend the existing text about confusing field vs method access in structs and other types to apply to traits.

@nikomatsakis
Copy link
Owner Author

This seems like a no-brainer. PRs would be welcome on this point!

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

No branches or pull requests

1 participant