Skip to content

Commit fb49894

Browse files
committed
Add a couple of links.
1 parent 4f2125b commit fb49894

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/expressions/method-call-expr.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ traits in scope.
7878
"Various simpler types" currently means bool, char, all numbers, str, array,
7979
slices, raw pointers, references, never and tuple.
8080

81-
"Inherent" means a candidate method that can be identified just from
82-
the signature. For example, the `impl` blocks corresponding to a struct
83-
or a trait. "Extension" means a candidate gathered by considering the
84-
traits in scope.
81+
["Inherent"][inherent] means a candidate method from a block directly
82+
corresponding to the type in the signature. For example, the `impl` blocks
83+
corresponding to a struct or a trait. "Extension" means a candidate gathered
84+
by considering [methods on traits] in scope.
8585

8686
These searches contribute to list of all the candidate methods found;
8787
separate lists are maintained for the inherent and extension candidates.
@@ -226,3 +226,5 @@ There are a few details not considered in this overview:
226226
[methods]: ../items/associated-items.md#methods
227227
[unsized coercion]: ../type-coercions.md#unsized-coercions
228228
[`IntoIterator`]: std::iter::IntoIterator
229+
[inherent]: ../items/implementations.md#inherent-implementations
230+
[methods on traits]: ../items/implementations.md#trait-implementations

0 commit comments

Comments
 (0)