We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f384943 + 42240dc commit 28b923cCopy full SHA for 28b923c
src/doc/trpl/method-syntax.md
@@ -127,12 +127,12 @@ fn grow(&self) -> Circle {
127
We just say we’re returning a `Circle`. With this method, we can grow a new
128
circle to any arbitrary size.
129
130
-# Static methods
+# Associated functions
131
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:
+You can also define associated functions that do not take a `self` parameter.
+Here’s a pattern that’s very common in Rust code:
134
135
-```
+```rust
136
struct Circle {
137
x: f64,
138
y: f64,
0 commit comments