Skip to content

More docs fixes #8541

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 2 commits into from
Mar 15, 2020
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
6 changes: 3 additions & 3 deletions docs/docs/reference/changed-features/implicit-resolution.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ affect implicits on the language level.
buzz(1) // error: ambiguous
```
7. The rule for picking a _most specific_ alternative among a set of overloaded or implicit
alternatives is refined to take inferable parameters into account. All else
being equal, an alternative that takes some implicit parameters is taken to be less specific
than an alternative that takes none. If both alternatives take implicit parameters, we try
alternatives is refined to take context parameters into account. All else
being equal, an alternative that takes some context parameters is taken to be less specific
than an alternative that takes none. If both alternatives take context parameters, we try
to choose between them as if they were methods with regular parameters.
The following paragraph in the SLS is affected by this change:

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 @@ -50,7 +50,7 @@ final implicit def given_Context = ctx
Anonymous given instances get compiler synthesized names, which are generated in a reproducible way from the implemented type(s). For example, if the names of the `IntOrd` and `ListOrd` givens above were left out, the following names would be synthesized instead:
```scala
given given_Ord_Int as Ord[Int] { ... }
given given_Ord_List[T] as Ord[List[T]] { ... }
given given_Ord_List_T[T](using ord: Ord[T]) as Ord[List[T]] { ... }
```
The synthesized type names are formed from

Expand Down