Skip to content

Commit

Permalink
Rollup merge of #25314 - steveklabnik:static_to_associated, r=alexcri…
Browse files Browse the repository at this point in the history
…chton
  • Loading branch information
steveklabnik committed May 12, 2015
2 parents f384943 + 42240dc commit 28b923c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/doc/trpl/method-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ fn grow(&self) -> Circle {
We just say we’re 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. Here’s a
pattern that’s very common in Rust code:
You can also define associated functions that do not take a `self` parameter.
Here’s a pattern that’s very common in Rust code:

```
```rust
struct Circle {
x: f64,
y: f64,
Expand Down

0 comments on commit 28b923c

Please sign in to comment.