diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-06-09 15:49:54 -0400 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-06-09 15:49:57 -0400 |
| commit | a95b48c2dd921fa37f54ee42e14e66a185951e58 (patch) | |
| tree | 48612eac3776e8e9385c365b3a0fa714665af2b7 | |
| parent | 7b0f2af27f18b6c81fe6a2faab0ba96e0da3bba5 (diff) | |
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
| -rw-r--r-- | src/doc/trpl/method-syntax.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/trpl/method-syntax.md b/src/doc/trpl/method-syntax.md index 1f694f71a88..1afa622db7d 100644 --- a/src/doc/trpl/method-syntax.md +++ b/src/doc/trpl/method-syntax.md @@ -86,8 +86,8 @@ impl Circle { # Chaining method calls So, now we know how to call a method, such as `foo.bar()`. But what about our -original example, `foo.bar().baz()`? This is called ‘method chaining’, and we -can do it by returning `self`. +original example, `foo.bar().baz()`? This is called ‘method chaining’. Let’s +look at an example: ```rust struct Circle { |
