Skip to content

Wording tweaks #6421

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 2, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/docs/reference/contextual-repr/instance-defs.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Given clauses are further explained in the [next section](./inferable-params.htm

## Anonymous Representatives

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

## Representative Creation
## Creating Representatives

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.

Expand Down