Skip to content

Commit 73a90dd

Browse files
Merge pull request #7552 from RichieAHB/patch-1
Update relationship-implicits.md
2 parents 951b05f + a320aaf commit 73a90dd

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

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

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,21 @@ Given instances can be mapped to combinations of implicit objects, classes and i
2929
final implicit def ListOrd[T](implicit ord: Ord[T]): ListOrd[T] = new ListOrd[T]
3030
```
3131
3. Alias givens map to implicit methods or implicit lazy vals. If an alias has neither type parameters nor a given clause,
32-
it is treated as a lazy val, unless the right hand side is a simple reference, in which case we can use a forwarder to that
33-
reference without caching it.
32+
it is treated as a lazy val, unless the right hand side is a simple reference, in which case we can use a forwarder to
33+
that reference without caching it.
3434

35-
Examples:
36-
37-
```scala
38-
given global: ExecutionContext = new ForkJoinContext()
35+
Examples:
36+
```scala
37+
given global: ExecutionContext = new ForkJoinContext()
3938

40-
val ctx: Context
41-
given Context = ctx
42-
```
43-
would map to
44-
```scala
45-
final implicit lazy val global: ExecutionContext = new ForkJoinContext()
46-
final implicit def given_Context = ctx
47-
```
39+
val ctx: Context
40+
given Context = ctx
41+
```
42+
would map to
43+
```scala
44+
final implicit lazy val global: ExecutionContext = new ForkJoinContext()
45+
final implicit def given_Context = ctx
46+
```
4847

4948
### Anonymous Given Instances
5049

0 commit comments

Comments
 (0)