From a320aafe6e095bf7990155098ad8bc6dd0707c28 Mon Sep 17 00:00:00 2001 From: Richard Beddington Date: Wed, 13 Nov 2019 12:25:11 +0000 Subject: [PATCH] Update relationship-implicits.md Fix broken markdown --- .../contextual/relationship-implicits.md | 27 +++++++++---------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/docs/docs/reference/contextual/relationship-implicits.md b/docs/docs/reference/contextual/relationship-implicits.md index eaa54fbd75a2..ce19e6a4389a 100644 --- a/docs/docs/reference/contextual/relationship-implicits.md +++ b/docs/docs/reference/contextual/relationship-implicits.md @@ -29,22 +29,21 @@ Given instances can be mapped to combinations of implicit objects, classes and i final implicit def ListOrd[T](implicit ord: Ord[T]): ListOrd[T] = new ListOrd[T] ``` 3. Alias givens map to implicit methods or implicit lazy vals. If an alias has neither type parameters nor a given clause, - 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 - reference without caching it. + 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 reference without caching it. - Examples: - - ```scala - given global: ExecutionContext = new ForkJoinContext() +Examples: +```scala +given global: ExecutionContext = new ForkJoinContext() - val ctx: Context - given Context = ctx - ``` - would map to - ```scala - final implicit lazy val global: ExecutionContext = new ForkJoinContext() - final implicit def given_Context = ctx - ``` +val ctx: Context +given Context = ctx +``` +would map to +```scala +final implicit lazy val global: ExecutionContext = new ForkJoinContext() +final implicit def given_Context = ctx +``` ### Anonymous Given Instances