Skip to content

Commit a26af3f

Browse files
committed
Spell "subtrait" without hyphen
We spell "supertrait" without the hyphen. Let's spell subtrait that way as well.
1 parent 3126639 commit a26af3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/expressions/method-call-expr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ r[expr.method.ambiguous-target]
6767
If this results in multiple possible candidates, then it is an error, and the receiver must be [converted][disambiguate call] to an appropriate receiver type to make the method call.
6868
6969
r[expr.method.supertrait-shadowing]
70-
As an exception to the above, if all candidates consist of trait methods and one candidate is a sub-trait of all other candidates then that candidate is selected instead of causing an ambiguity error.
70+
As an exception to the above, if all candidates consist of trait methods and one candidate is a subtrait of all other candidates then that candidate is selected instead of causing an ambiguity error.
7171
7272
r[expr.method.receiver-constraints]
7373
This process does not take into account the mutability or lifetime of the receiver, or whether a method is `unsafe`. Once a method is looked up, if it can't be called for one (or more) of those reasons, the result is a compiler error.

0 commit comments

Comments
 (0)