Skip to content

Commit 38afba0

Browse files
committed
Docs fix
1 parent b0a3572 commit 38afba0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compiler/src/dotty/tools/dotc/parsing/Parsers.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,7 +1341,8 @@ object Parsers {
13411341
try commaSeparated(argumentExpr)
13421342
finally openParens.change(LPAREN, -1)
13431343
}
1344-
if (args == ParamNotArg :: Nil) in.adjustSepRegions(RPAREN) // simulate `)` without requiring it
1344+
if (args == ParamNotArg :: Nil)
1345+
in.adjustSepRegions(RPAREN) // simulate `)` without requiring it
13451346
else {
13461347
lookaheadTokens.clear()
13471348
accept(RPAREN)
@@ -1374,7 +1375,7 @@ object Parsers {
13741375
* start an expression or is an identifier and is followed by `:`,
13751376
* stop parsing the rest of the expression and return `EmptyTree`,
13761377
* indicating that we should re-parse the expression as a parameter clause.
1377-
* Otherwise clear the lookahead buffer and parse as normal.
1378+
* Otherwise parse as normal.
13781379
*/
13791380
def classConstrAnnotExpr() = {
13801381
saveLookahead()

0 commit comments

Comments
 (0)