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

book: explain why we default to &self as first parameter in methods #23748

Closed
tshepang opened this issue Mar 26, 2015 · 0 comments · Fixed by #23788
Closed

book: explain why we default to &self as first parameter in methods #23748

tshepang opened this issue Mar 26, 2015 · 0 comments · Fixed by #23788

Comments

@tshepang
Copy link
Member

In Method Syntax chapter, the reason given for using &self as the method parameter is that "it's the most common". That needs to be replaced with a better explanation.

@tshepang tshepang changed the title book: explain why default to &self as first parameter in methods book: explain why we default to &self as first parameter in methods Mar 26, 2015
steveklabnik added a commit to steveklabnik/rust that referenced this issue Mar 27, 2015
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 a pull request may close this issue.

2 participants