You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/reference/other-new-features/indentation.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -190,12 +190,12 @@ Indentation-based syntax has many advantages over other conventions. But one pos
190
190
To solve this problem, Scala3 offers an optional `end` marker. Example:
191
191
```scala
192
192
deflargeMethod(...) =
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
199
199
endlargeMethod
200
200
```
201
201
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