Skip to content

Commit d7900c5

Browse files
committed
Fix indentation width in example from 4 to 2
1 parent 97112c2 commit d7900c5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,12 @@ Indentation-based syntax has many advantages over other conventions. But one pos
190190
To solve this problem, Scala 3 offers an optional `end` marker. Example:
191191
```scala
192192
def largeMethod(...) =
193-
...
194-
if ... then ...
195-
else
196-
... // a large block
197-
end if
198-
... // more code
193+
...
194+
if ... then ...
195+
else
196+
... // a large block
197+
end if
198+
... // more code
199199
end largeMethod
200200
```
201201
An `end` marker consists of the identifier `end` and a follow-on specifier token that together constitute all the tokes of a line. Possible specifier tokens are

0 commit comments

Comments
 (0)