Skip to content

Commit 4a7eed1

Browse files
committed
Rollup merge of rust-lang#22333 - caipre:patch-1, r=steveklabnik
The `Circle::grow` method multiplies the radius by a factor of 10, not 2.
2 parents 2aa3182 + 1ac10dd commit 4a7eed1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/trpl/method-syntax.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ fn grow(&self) -> Circle {
9999
# Circle } }
100100
```
101101

102-
We just say we're returning a `Circle`. With this, we can grow a new circle
103-
that's twice as big as the old one.
102+
We just say we're returning a `Circle`. With this method, we can grow a new
103+
circle with an area that's 100 times larger than the old one.
104104

105105
## Static methods
106106

0 commit comments

Comments
 (0)