Skip to content

Commit fbe355b

Browse files
chorman0773traviscross
authored andcommitted
Apply suggestions from code review
Co-authored-by: Travis Cross <[email protected]>
1 parent eed74c2 commit fbe355b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/expressions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ Explicitly, the assignee expressions are:
197197
fields).
198198
- [Unit structs][_StructExpression_].
199199

200-
r[expr.place-value.parentehesis]
200+
r[expr.place-value.parenthesis]
201201
Arbitrary parenthesisation is permitted inside assignee expressions.
202202

203203
### Moved and copied types

src/expressions/grouped-expr.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ r[expr.paren.place-or-value]
1818
Unlike other expressions, parenthesized expressions are both [place expressions and value expressions][place].
1919
When the enclosed operand is a place expression, it is a place expression and when the enclosed operand is a value expression, it is a value expression.
2020

21-
r[expr.paren.overridew-precedence]
21+
r[expr.paren.override-precedence]
2222
Parentheses can be used to explicitly modify the precedence order of subexpressions within an expression.
2323

2424
An example of a parenthesized expression:

src/expressions/method-call-expr.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ When looking up a method call, the receiver may be automatically dereferenced or
2424
This requires a more complex lookup process than for other functions, since there may be a number of possible methods to call.
2525
The following procedure is used:
2626

27-
r[expr.method.candidate-recievers]
27+
r[expr.method.candidate-receivers]
2828
The first step is to build a list of candidate receiver types.
2929
Obtain these by repeatedly [dereferencing][dereference] the receiver expression's type, adding each type encountered to the list, then finally attempting an [unsized coercion] at the end, and adding the result type if that is successful.
3030

31-
r[expr.method.candidate-recievers-refs]
31+
r[expr.method.candidate-receivers-refs]
3232
Then, for each candidate `T`, add `&T` and `&mut T` to the list immediately after `T`.
3333

3434
For instance, if the receiver has type `Box<[i32;2]>`, then the candidate types will be `Box<[i32;2]>`, `&Box<[i32;2]>`, `&mut Box<[i32;2]>`, `[i32; 2]` (by dereferencing), `&[i32; 2]`, `&mut [i32; 2]`, `[i32]` (by unsized coercion), `&[i32]`, and finally `&mut [i32]`.
@@ -69,14 +69,14 @@ Then, for each candidate type `T`, search for a [visible] method with a receiver
6969
> }
7070
> ```
7171
72-
r[expr.method.ambiguious-target]
72+
r[expr.method.ambiguous-target]
7373
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.
7474
7575
r[expr.method.constraint]
7676
This process does not take into account the mutability or lifetime of the receiver, or whether a method is `unsafe`.
7777
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.
7878
79-
r[expr.method.ambiguious-search]
79+
r[expr.method.ambiguous-search]
8080
If a step is reached where there is more than one possible method, such as where generic methods or traits are considered the same, then it is a compiler error.
8181
These cases require a [disambiguating function call syntax] for method and function invocation.
8282

0 commit comments

Comments
 (0)