Skip to content

Commit dbbf588

Browse files
committed
Small fixes
1 parent 9379c53 commit dbbf588

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1502,7 +1502,7 @@ object Parsers {
15021502
def typedFunParam(start: Offset, name: TermName, mods: Modifiers = EmptyModifiers): ValDef =
15031503
atSpan(start) {
15041504
accept(COLON)
1505-
makeParameter(name, typ(), mods | Param)
1505+
makeParameter(name, typ(), mods)
15061506
}
15071507

15081508
/** FunParamClause ::= ‘(’ TypedFunParam {‘,’ TypedFunParam } ‘)’

docs/docs/internals/syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ ClosureMods ::= { ‘implicit’ | ‘given’}
322322

323323
### Bindings and Imports
324324
```ebnf
325-
Bindings ::= ‘(’ [[‘using’] Binding {‘,’ Binding}] ‘)’
325+
Bindings ::= ‘(’ [Binding {‘,’ Binding}] ‘)’
326326
Binding ::= (id | ‘_’) [‘:’ Type] ValDef(_, id, tpe, EmptyTree)
327327
328328
Modifier ::= LocalModifier

0 commit comments

Comments
 (0)