Skip to content

Guide: method syntax #16255

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

Merged
merged 1 commit into from
Aug 8, 2014
Merged

Guide: method syntax #16255

merged 1 commit into from
Aug 8, 2014

Conversation

steveklabnik
Copy link
Member

Shifting some things around here, as I think this is a better order.

Finally, as you may remember, the value of the area of a circle is `π*r²`.
Because we took the `&self` parameter to `area`, we can use it just like any
other parameter. Because we know it's a `Circle`, we can access the `radius`
just like we would with any other struct. an import of π and some
Copy link
Contributor

Choose a reason for hiding this comment

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

s/an/An

Copy link
Member Author

Choose a reason for hiding this comment

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

thank you!

@steveklabnik
Copy link
Member Author

Rebased to fix the merge issue.

bors added a commit that referenced this pull request Aug 8, 2014
Shifting some things around here, as I think this is a better order.
@bors bors closed this Aug 8, 2014
@bors bors merged commit 50ffe0c into rust-lang:master Aug 8, 2014
@steveklabnik steveklabnik deleted the guide_methods branch October 25, 2017 18:26
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.

4 participants