Skip to content

Commit b00f671

Browse files
authored
Merge pull request #8541 from dotty-staging/change-docs1
More docs fixes
2 parents 0d80c80 + aa76f94 commit b00f671

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/docs/reference/changed-features/implicit-resolution.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ affect implicits on the language level.
9999
buzz(1) // error: ambiguous
100100
```
101101
7. The rule for picking a _most specific_ alternative among a set of overloaded or implicit
102-
alternatives is refined to take inferable parameters into account. All else
103-
being equal, an alternative that takes some implicit parameters is taken to be less specific
104-
than an alternative that takes none. If both alternatives take implicit parameters, we try
102+
alternatives is refined to take context parameters into account. All else
103+
being equal, an alternative that takes some context parameters is taken to be less specific
104+
than an alternative that takes none. If both alternatives take context parameters, we try
105105
to choose between them as if they were methods with regular parameters.
106106
The following paragraph in the SLS is affected by this change:
107107

docs/docs/reference/contextual/relationship-implicits.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ final implicit def given_Context = ctx
5050
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:
5151
```scala
5252
given given_Ord_Int as Ord[Int] { ... }
53-
given given_Ord_List[T] as Ord[List[T]] { ... }
53+
given given_Ord_List_T[T](using ord: Ord[T]) as Ord[List[T]] { ... }
5454
```
5555
The synthesized type names are formed from
5656

0 commit comments

Comments
 (0)