Skip to content

Commit a95b48c

Browse files
committed
Fix some copyediting in TRPL: method-syntax
As this example got changed, we stopped showing how to return self as the first example, so this text is outdated. Fixes #25803
1 parent 7b0f2af commit a95b48c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/trpl/method-syntax.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ impl Circle {
8686
# Chaining method calls
8787

8888
So, now we know how to call a method, such as `foo.bar()`. But what about our
89-
original example, `foo.bar().baz()`? This is called ‘method chaining’, and we
90-
can do it by returning `self`.
89+
original example, `foo.bar().baz()`? This is called ‘method chaining’. Let’s
90+
look at an example:
9191

9292
```rust
9393
struct Circle {

0 commit comments

Comments
 (0)