Skip to content

Commit 97324d6

Browse files
authored
Merge pull request #6421 from dotty-staging/try-contextual-delegate
Wording tweaks
2 parents 84c90bf + f675474 commit 97324d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Given clauses are further explained in the [next section](./inferable-params.htm
3737

3838
## Anonymous Representatives
3939

40-
The name of a representative can be left out. So the representative definitions
40+
The name of a representative can be left out. So the representatives
4141
of the last section can also be expressed like this:
4242
```scala
4343
repr of Ord[Int] { ... }
@@ -62,7 +62,7 @@ repr of Position = enclosingTree.position
6262
```
6363
An alias representative can have type and context parameters just like any other representative, but it can only implement a single type.
6464

65-
## Representative Creation
65+
## Creating Representatives
6666

6767
A representative without type parameters or given clause is created on-demand, the first time it is accessed. It is not required to ensure safe publication, which means that different threads might create different representatives for the same `repr` clause. If a `repr` clause has type parameters or a given clause, a fresh representative is created for each reference.
6868

0 commit comments

Comments
 (0)