Skip to content

fixed examples for names of anonymous givens #13167

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
Mar 14, 2022
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion docs/_docs/reference/contextual/givens.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ the implemented type(s).

```scala
given_Ord_Int
given_Ord_List_T
given_Ord_List
```

The precise rules for synthesizing names are found [here](./relationship-implicits.html#anonymous-given-instances). These rules do not guarantee absence of name conflicts between
Expand Down
2 changes: 1 addition & 1 deletion docs/_docs/reference/contextual/relationship-implicits.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Anonymous given instances get compiler synthesized names, which are generated in

```scala
given given_Ord_Int: Ord[Int] with { ... }
given given_Ord_List_T[T](using ord: Ord[T]): Ord[List[T]] with { ... }
given given_Ord_List[T](using ord: Ord[T]): Ord[List[T]] with { ... }
```

The synthesized type names are formed from
Expand Down