Skip to content

Commit 9b1842d

Browse files
committed
Update docs to new syntax terms
1 parent c2bab93 commit 9b1842d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

docs/docs/reference/contextual/inferable-params.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@ Functions like `the` that have only inferable parameters are also called _contex
101101
Here is the new syntax of parameters and arguments seen as a delta from the [standard context free syntax of Scala 3](http://dotty.epfl.ch/docs/internals/syntax.html).
102102
```
103103
ClsParamClause ::= ...
104-
| ‘given’ (‘(’ [ClsParams] ‘)’ | ContextTypes)
104+
| ‘given’ (‘(’ [ClsParams] ‘)’ | GivenTypes)
105105
DefParamClause ::= ...
106-
| InferParamClause
107-
InferParamClause ::= ‘given’ (‘(’ DefParams ‘)’ | ContextTypes)
108-
ContextTypes ::= RefinedType {‘,’ RefinedType}
106+
| GivenParamClause
107+
GivenParamClause ::= ‘given’ (‘(’ DefParams ‘)’ | GivenTypes)
108+
GivenTypes ::= RefinedType {‘,’ RefinedType}
109109
110110
InfixExpr ::= ...
111111
| InfixExpr ‘given’ (InfixExpr | ParArgumentExprs)

docs/docs/reference/contextual/instance-defs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ Here is the new syntax of implied instance definitions, seen as a delta from the
6767
TmplDef ::= ...
6868
| ‘implied’ InstanceDef
6969
InstanceDef ::= [id] InstanceParams InstanceBody
70-
InstanceParams ::= [DefTypeParamClause] {InferParamClause}
71-
InferParamClause ::= ‘given’ (‘(’ [DefParams] ‘)’ | ContextTypes)
70+
InstanceParams ::= [DefTypeParamClause] {GivenParamClause}
71+
InferParamClause ::= ‘given’ (‘(’ [DefParams] ‘)’ | GivenTypes)
7272
InstanceBody ::= [‘for’ ConstrApp {‘,’ ConstrApp }] [TemplateBody]
7373
| ‘for’ Type ‘=’ Expr
74-
ContextTypes ::= RefinedType {‘,’ RefinedType}
74+
GivenTypes ::= RefinedType {‘,’ RefinedType}
7575
```
7676
The identifier `id` can be omitted only if either the `for` part or the template body is present.
7777
If the `for` part is missing, the template body must define at least one extension method.

0 commit comments

Comments
 (0)