Skip to content

Commit 8d3275c

Browse files
authored
Merge pull request #11235 from michelou/scala3-docs
3 fixes in Markdown files
2 parents 4a6ec60 + 84d0ab4 commit 8d3275c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

docs/docs/reference/other-new-features/indentation.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: doc-page
3-
title: Optional Braces
3+
title: "Optional Braces"
44
---
55

66
Scala 3 enforces some rules on indentation and allows some occurrences of braces `{...}` to be optional:
@@ -9,7 +9,8 @@ Scala 3 enforces some rules on indentation and allows some occurrences of braces
99
- Second, some occurrences of braces `{...}` are made optional. Generally, the rule
1010
is that adding a pair of optional braces will not change the meaning of a well-indented program.
1111

12-
These changescan can be turned off with the compiler flag `-noindent`.
12+
These changes can be turned off with the compiler flag `-noindent`.
13+
1314
### Indentation Rules
1415

1516
The compiler enforces two rules for well-indented programs, flagging violations as warnings.

docs/docs/reference/syntax.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,19 +87,19 @@ semi ::= ‘;’ | nl {nl}
8787

8888
## Optional Braces
8989

90-
The lexical analyzer also inserts `indent` and `outdent` tokens that represent regions of indented code [at certain points](../reference/other-new-features-indentation.html)
90+
The lexical analyzer also inserts `indent` and `outdent` tokens that represent regions of indented code [at certain points](../other-new-features/indentation.md).
9191

9292
In the context-free productions below we use the notation `<<< ts >>>`
9393
to indicate a token sequence `ts` that is either enclosed in a pair of braces `{ ts }` or that constitutes an indented region `indent ts outdent`. Analogously, the
9494
notation `:<<< ts >>>` indicates a token sequence `ts` that is either enclosed in a pair of braces `{ ts }` or that constitutes an indented region `indent ts outdent` that follows
9595
a `:` at the end of a line.
9696

97-
9897
```
9998
<<< ts >>> ::= ‘{’ ts ‘}’
10099
| indent ts outdent
101100
:<<< ts >>> ::= [nl] ‘{’ ts ‘}’
102101
| `:` indent ts outdent
102+
```
103103

104104
## Keywords
105105

0 commit comments

Comments
 (0)