@@ -1338,14 +1338,13 @@ pub enum ExprKind {
1338
1338
///
1339
1339
/// The `PathSegment` represents the method name and its generic arguments
1340
1340
/// (within the angle brackets).
1341
- /// The first element of the vector of an `Expr` is the expression that evaluates
1342
- /// to the object on which the method is being called on (the receiver),
1343
- /// and the remaining elements are the rest of the arguments.
1344
- /// Thus, `x.foo::<Bar, Baz>(a, b, c, d)` is represented as
1345
- /// `ExprKind::MethodCall(PathSegment { foo, [Bar, Baz] }, [x, a, b, c, d])`.
1341
+ /// The standalone `Expr` is the receiver expression.
1342
+ /// The vector of `Expr` is the arguments.
1343
+ /// `x.foo::<Bar, Baz>(a, b, c, d)` is represented as
1344
+ /// `ExprKind::MethodCall(PathSegment { foo, [Bar, Baz] }, x, [a, b, c, d])`.
1346
1345
/// This `Span` is the span of the function, without the dot and receiver
1347
1346
/// (e.g. `foo(a, b)` in `x.foo(a, b)`
1348
- MethodCall ( PathSegment , Vec < P < Expr > > , Span ) ,
1347
+ MethodCall ( PathSegment , P < Expr > , Vec < P < Expr > > , Span ) ,
1349
1348
/// A tuple (e.g., `(a, b, c, d)`).
1350
1349
Tup ( Vec < P < Expr > > ) ,
1351
1350
/// A binary operation (e.g., `a + b`, `a * b`).
0 commit comments