Skip to content

Commit 36fec1c

Browse files
Merge pull request rust-lang#274 from alercah/trait-fix
Clarify that method calls can go on any type.
2 parents 3f5c9c9 + 9332505 commit 36fec1c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/expressions/method-call-expr.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

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

1010
```rust

0 commit comments

Comments
 (0)