We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 576b265 commit e050b4cCopy full SHA for e050b4c
docs/docs/reference/other-new-features/indentation.md
@@ -4,9 +4,10 @@ title: Optional Braces
4
---
5
6
As an experimental feature, Scala 3 enforces some rules on indentation and allows
7
-some occurrences of braces `{...}` to be optional.
+some occurrences of braces `{...}` to be optional.
8
+It can be turned off with the compiler flag `-noindent`.
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.
11
- Second, some occurrences of braces `{...}` are made optional. Generally, the rule
12
is that adding a pair of optional braces will not change the meaning of a well-indented program.
13
0 commit comments