diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-06-09 17:24:45 -0400 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-06-09 17:24:45 -0400 |
| commit | 9bcae312a39c4ecc93449e40e86d05b776eadd16 (patch) | |
| tree | f6201557a7b69e81a403da04d25a329c55b15e6f /src | |
| parent | b38e9a73d429924fd3557411b2ebcb532a4cea81 (diff) | |
| parent | a95b48c2dd921fa37f54ee42e14e66a185951e58 (diff) | |
| download | rust-9bcae312a39c4ecc93449e40e86d05b776eadd16.tar.gz rust-9bcae312a39c4ecc93449e40e86d05b776eadd16.zip | |
Rollup merge of #26140 - steveklabnik:gh25803, r=alexcrichton
As this example got changed, we stopped showing how to return self as the first example, so this text is outdated. Fixes #25803
Diffstat (limited to 'src')
| -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 { |
