Skip to content

Commit e050b4c

Browse files
committed
doc(braces): mention -noindent in the teaser
1 parent 576b265 commit e050b4c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ title: Optional Braces
44
---
55

66
As an experimental feature, Scala 3 enforces some rules on indentation and allows
7-
some occurrences of braces `{...}` to be optional.
7+
some occurrences of braces `{...}` to be optional.
8+
It can be turned off with the compiler flag `-noindent`.
89

9-
- First, some badly indented programs are ruled out, which means they are flagged with warnings.
10+
- First, some badly indented programs are flagged with warnings.
1011
- Second, some occurrences of braces `{...}` are made optional. Generally, the rule
1112
is that adding a pair of optional braces will not change the meaning of a well-indented program.
1213

0 commit comments

Comments
 (0)