Skip to content

Commit 28b923c

Browse files
committed
Rollup merge of #25314 - steveklabnik:static_to_associated, r=alexcrichton
2 parents f384943 + 42240dc commit 28b923c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/doc/trpl/method-syntax.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,12 @@ fn grow(&self) -> Circle {
127127
We just say we’re returning a `Circle`. With this method, we can grow a new
128128
circle to any arbitrary size.
129129

130-
# Static methods
130+
# Associated functions
131131

132-
You can also define static methods that do not take a `self` parameter. Here’s a
133-
pattern that’s very common in Rust code:
132+
You can also define associated functions that do not take a `self` parameter.
133+
Here’s a pattern that’s very common in Rust code:
134134

135-
```
135+
```rust
136136
struct Circle {
137137
x: f64,
138138
y: f64,

0 commit comments

Comments
 (0)