Skip to content

Commit 280a9b4

Browse files
committed
Address review comments.
1 parent 66a8bfe commit 280a9b4

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

src/attributes.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@
1313
> _MetaItem_ :\
1414
>       [_SimplePath_]\
1515
> &nbsp;&nbsp; | [_SimplePath_] `=` [_LiteralExpression_]<sub>_without suffix_</sub>\
16-
> &nbsp;&nbsp; | [_SimplePath_] `(` _MetaSeq_ `)`
16+
> &nbsp;&nbsp; | [_SimplePath_] `(` _MetaSeq_<sup>?</sup> `)`
1717
>
1818
> _MetaSeq_ :\
19-
> &nbsp;&nbsp; &nbsp;&nbsp; EMPTY\
20-
> &nbsp;&nbsp; | _MetaItem_\
21-
> &nbsp;&nbsp; | [_LiteralExpression_]<sub>_without suffix_</sub>\
22-
> &nbsp;&nbsp; | _MetaItem_ `,` _MetaSeq_
19+
> &nbsp;&nbsp; _MetaItemInner_ ( `,` MetaItemInner )<sup>\*</sup> `,`<sup>?</sup>
20+
>
21+
> _MetaItemInner_ :\
22+
> &nbsp;&nbsp; &nbsp;&nbsp; _MetaItem_\
23+
> &nbsp;&nbsp; | [_LiteralExpression_]<sub>_without suffix_</sub>
2324
2425
An _attribute_ is a general, free-form metadatum that is interpreted according
2526
to name, convention, and language and compiler version. Attributes are modeled

src/expressions/operator-expr.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ let y = false && panic!(); // false, doesn't evaluate `panic!()`
312312

313313
> **<sup>Syntax</sup>**\
314314
> _TypeCastExpression_ :\
315-
> &nbsp;&nbsp; [_Expression_] `as` [_PathInExpression_]
315+
> &nbsp;&nbsp; [_Expression_] `as` [_TypeNoBounds_]
316316
317317
A type cast expression is denoted with the binary operator `as`.
318318

@@ -460,4 +460,4 @@ assert_eq!(x, 14);
460460
[_CompoundAssignmentExpression_]: #compound-assignment-expressions
461461

462462
[_Expression_]: expressions.html
463-
[_PathInExpression_]: paths.html#paths-in-expressions
463+
[_TypeNoBounds_]: types.html

src/paths.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,13 @@ Vec::<u8>::with_capacity(1024);
8484

8585
> **<sup>Syntax</sup>**\
8686
> _QualifiedPathInExpression_ :\
87-
> &nbsp;&nbsp; _QualifiedPathType_ (`::` _PathExprSegment_)<sup>\*</sup>
87+
> &nbsp;&nbsp; _QualifiedPathType_ (`::` _PathExprSegment_)<sup>+</sup>
8888
>
8989
> _QualifiedPathType_ :\
9090
> &nbsp;&nbsp; `<` [_Type_] (`as` _TypePath_)? `>`
9191
>
9292
> _QualifiedPathInType_ :\
93-
> &nbsp;&nbsp; _QualifiedPathType_ (`::` _TypePathSegment_)<sup>\*</sup>
93+
> &nbsp;&nbsp; _QualifiedPathType_ (`::` _TypePathSegment_)<sup>+</sup>
9494
9595
Fully qualified paths allow for disambiguating the path for [trait implementations] and
9696
for specifying [canonical paths](#canonical-paths). When used in a type specification, it

0 commit comments

Comments
 (0)