Skip to content

Commit e0baff5

Browse files
authored
Remove stray hard breaks in the formal grammar (#1)
Confirmed that these are the only two places where this happened by looking at the summary of the grammar and searching for backslashes in the rendered output. As discussed here: https://forums.swift.org/t/74659
2 parents 6911440 + 8ded8de commit e0baff5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

TSPL.docc/ReferenceManual/Declarations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ the term *declaration* covers both declarations and definitions.
3333
> *declaration**subscript-declaration* \
3434
> *declaration**macro-declaration* \
3535
> *declaration**operator-declaration* \
36-
> *declaration**precedence-group-declaration* \
36+
> *declaration**precedence-group-declaration*
3737
3838
## Top-Level Code
3939

TSPL.docc/ReferenceManual/Expressions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ in the sections below.
2020

2121
> Grammar of an expression:
2222
>
23-
> *expression**try-operator*_?_ *await-operator*_?_ *prefix-expression* *infix-expressions*_?_ \
23+
> *expression**try-operator*_?_ *await-operator*_?_ *prefix-expression* *infix-expressions*_?_
2424
2525
## Prefix Expressions
2626

TSPL.docc/ReferenceManual/SummaryOfTheGrammar.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ make the same change here also.
315315

316316
> Grammar of an expression:
317317
>
318-
> *expression**try-operator*_?_ *await-operator*_?_ *prefix-expression* *infix-expressions*_?_ \
318+
> *expression**try-operator*_?_ *await-operator*_?_ *prefix-expression* *infix-expressions*_?_
319319
320320
> Grammar of a prefix expression:
321321
>
@@ -748,7 +748,7 @@ make the same change here also.
748748
> *declaration**extension-declaration* \
749749
> *declaration**subscript-declaration* \
750750
> *declaration**operator-declaration* \
751-
> *declaration**precedence-group-declaration* \
751+
> *declaration**precedence-group-declaration*
752752
753753
> Grammar of a top-level declaration:
754754
>

0 commit comments

Comments
 (0)