diff --git a/src/expressions/field-expr.md b/src/expressions/field-expr.md index 9f558d802..5828e2043 100644 --- a/src/expressions/field-expr.md +++ b/src/expressions/field-expr.md @@ -1,5 +1,9 @@ # Field access expressions +> **Syntax** +> _FieldExpression_ : +>    [_Expression_] `.` [IDENTIFIER] + A _field expression_ consists of an expression followed by a single dot and an [identifier](identifiers.html), when not immediately followed by a parenthesized expression-list (the latter is always a [method call @@ -42,3 +46,6 @@ let b: &String = &x.f2; // x.f2 borrowed immutably let c: &String = &x.f2; // Can borrow again let d: String = x.f3; // Move out of x.f3 ``` + +[_Expression_]: expressions.html +[IDENTIFIER]: identifiers.html