Skip to content

Commit

Permalink
Clarify that method calls can go on any type.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis Hunt committed Mar 18, 2018
1 parent 3f5c9c9 commit 9332505
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 9332505

Please sign in to comment.