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

Fix Typo in The Future Trait Chapter #207

Closed
wants to merge 1 commit into from

Conversation

Kartik1397
Copy link

No description provided.

@Kartik1397 Kartik1397 changed the title Fix typo Fix Typo in The Future Trait Chapter Nov 21, 2023
@sunrosa
Copy link

sunrosa commented Jan 16, 2024

I don't know what style guide the book follows, but it also works when capitalized. &mut self is short for self: &mut Self. Self is capitalized as a type, and lower case as a receiver identifier. Since two receiver types are being compared, it also makes sense for Self to be capitalized as in its de-sugared form.

@Kartik1397
Copy link
Author

Since two receiver types are being compared, it also makes sense for Self to be capitalized as in its de-sugared form.

Right, in the context of types &mut Self seems correct.

Thanks for the review @sunrosa!

@Kartik1397 Kartik1397 closed this Jan 16, 2024
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.

None yet

2 participants