Skip to content

Commit a5dc7ab

Browse files
committed
Update indentation doc
1 parent b7cd69e commit a5dc7ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ end largeMethod
109109
```
110110
An `end` marker consists of the identifier `end` which follows an `<outdent>` token, and is in turn followed on the same line by exactly one other token, which is either an identifier or one of the reserved words
111111
```scala
112-
if while for match try new
112+
if while for match try new given
113113
```
114114
If `end` is followed by a reserved word, the compiler checks that the marker closes an indentation region belonging to a construct that starts with the reserved word. If it is followed by an identifier _id_, the compiler checks that the marker closes a definition
115115
that defines _id_ or a package clause that refers to _id_.

0 commit comments

Comments
 (0)