Skip to content

Commit

Permalink
Merge pull request rust-lang#274 from alercah/trait-fix
Browse files Browse the repository at this point in the history
Clarify that method calls can go on any type.
  • Loading branch information
matthewjasper authored Mar 22, 2018
2 parents 3f5c9c9 + 9332505 commit 36fec1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/expressions/method-call-expr.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

A _method call_ consists of an expression (the *receiver*) followed by a single
dot, an [identifier], and a parenthesized expression-list. Method calls are
resolved to methods on specific traits, either statically dispatching to a
method if the exact `self`-type of the left-hand-side is known, or dynamically
dispatching if the left-hand-side expression is an indirect [trait
resolved to associated methods of specific types, either statically dispatching
to a method if the exact `self`-type of the left-hand-side is known, or
dynamically dispatching if the left-hand-side expression is an indirect [trait
object](types.html#trait-objects).

```rust
Expand Down

0 comments on commit 36fec1c

Please sign in to comment.