Rollup merge of #25314 - steveklabnik:static_to_associated, r=alexcrichton

This commit is contained in:
Steve Klabnik 2015-05-11 23:24:20 -04:00
commit 28b923c477

View File

@ -127,12 +127,12 @@ fn grow(&self) -> Circle {
We just say were returning a `Circle`. With this method, we can grow a new
circle to any arbitrary size.
# Static methods
# Associated functions
You can also define static methods that do not take a `self` parameter. Heres a
pattern thats very common in Rust code:
You can also define associated functions that do not take a `self` parameter.
Heres a pattern thats very common in Rust code:
```
```rust
struct Circle {
x: f64,
y: f64,