Skip to content

Commit d1b7f1c

Browse files
authored
Merge pull request #584 from rbakbashev/small_fixes
Fix incosistencies and unintentionally empty category
2 parents 39c861b + 69f651c commit d1b7f1c

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

src/attributes.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,15 +1221,15 @@ Attribute ``link``
12211221
$$name$$ $$=$$ StringLiteral
12221222

12231223
NativeLibraryNameWithKind ::=
1224-
NativeLibraryName $$,$$ NativeLibrayKind
1224+
NativeLibraryName $$,$$ NativeLibraryKind
12251225

12261226
WebAssemblyModuleName ::=
12271227
$$wasm_import_module$$ $$=$$ StringLiteral
12281228

1229-
NativeLibrayKind ::=
1230-
$$kind$$ $$=$$ " NativeLibrayKindType "
1229+
NativeLibraryKind ::=
1230+
$$kind$$ $$=$$ $$"$$ NativeLibraryKindType $$"$$
12311231

1232-
NativeLibrayKindType ::=
1232+
NativeLibraryKindType ::=
12331233
$$dylib$$
12341234
| $$raw-dylib$$
12351235
| $$framework$$
@@ -1704,6 +1704,7 @@ Attribute ``collapse_debuginfo``
17041704

17051705
CollapseDebuginfoContent ::=
17061706
$$collapse_debuginfo$$ $$($$ CollapseDebuginfoKind $$)$$
1707+
17071708
CollapseDebuginfoKind ::=
17081709
$$no$$
17091710
| $$external$$

src/expressions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3137,10 +3137,10 @@ Struct Expressions
31373137
| ShorthandInitializer
31383138
31393139
IndexedInitializer ::=
3140-
FieldIndex : Expression
3140+
FieldIndex $$:$$ Expression
31413141

31423142
NamedInitializer ::=
3143-
Identifier : Expression
3143+
Identifier $$:$$ Expression
31443144

31453145
ShorthandInitializer ::=
31463146
Identifier

src/functions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Functions
1313
.. syntax::
1414

1515
FunctionDeclaration ::=
16-
FunctionQualifierList $$fn$$ Name GenericParameterList? $$($$ FunctionParameterList? $$)$$ ReturnType? WhereClause? (FunctionBody | ;)
16+
FunctionQualifierList $$fn$$ Name GenericParameterList? $$($$ FunctionParameterList? $$)$$ ReturnType? WhereClause? (FunctionBody | $$;$$)
1717

1818
FunctionQualifierList ::=
1919
$$const$$? $$async$$? ItemSafety? AbiSpecification?

src/lexical-elements.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ Byte Literals
574574
| ByteEscape
575575
576576
ByteEscape ::=
577-
| $$\0$$
577+
$$\0$$
578578
| $$\"$$
579579
| $$\'$$
580580
| $$\t$$
@@ -612,6 +612,7 @@ Byte String Literals
612612
.. rubric:: Syntax
613613

614614
.. syntax::
615+
615616
ByteStringLiteral ::=
616617
RawByteStringLiteral
617618
| SimpleByteStringLiteral
@@ -712,6 +713,7 @@ C String Literals
712713
.. rubric:: Syntax
713714

714715
.. syntax::
716+
715717
CStringLiteral ::=
716718
RawCStringLiteral
717719
| SimpleCStringLiteral
@@ -1100,7 +1102,7 @@ Character Literals
11001102
| UnicodeEscape
11011103
11021104
AsciiEscape ::=
1103-
| $$\0$$
1105+
$$\0$$
11041106
| $$\"$$
11051107
| $$\'$$
11061108
| $$\t$$

0 commit comments

Comments
 (0)