You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/expressions/grouped-expr.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ r[expr.paren.place-or-value]
18
18
Unlike other expressions, parenthesized expressions are both [place expressions and value expressions][place].
19
19
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.
20
20
21
-
r[expr.paren.overridew-precedence]
21
+
r[expr.paren.override-precedence]
22
22
Parentheses can be used to explicitly modify the precedence order of subexpressions within an expression.
Copy file name to clipboardExpand all lines: src/expressions/method-call-expr.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -24,11 +24,11 @@ When looking up a method call, the receiver may be automatically dereferenced or
24
24
This requires a more complex lookup process than for other functions, since there may be a number of possible methods to call.
25
25
The following procedure is used:
26
26
27
-
r[expr.method.candidate-recievers]
27
+
r[expr.method.candidate-receivers]
28
28
The first step is to build a list of candidate receiver types.
29
29
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.
30
30
31
-
r[expr.method.candidate-recievers-refs]
31
+
r[expr.method.candidate-receivers-refs]
32
32
Then, for each candidate `T`, add `&T` and `&mut T` to the list immediately after `T`.
33
33
34
34
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
0 commit comments