Skip to content
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/inferable-params.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def max[T](x: T, y: T) given (ord: Ord[T]): T =
Here, `ord` is an _implicit parameter_ introduced with a `given` clause.
The `max` method can be applied as follows:
```scala
max(2, 3).given(IntOrd)
max(2, 3) given IntOrd
```
The `given IntOrd` part passes `IntOrd` as an argument for the `ord` parameter. But the point of
implicit parameters is that this argument can also be left out (and it usually is). So the following
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/reference/contextual/typeclasses.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ delegate ListMonad for Monad[List] {
List(x)
}

delegate ReaderMonad[Ctx] for Monad[[X] => Ctx => X] {
delegate ReaderMonad[Ctx] for Monad[[X] =>> Ctx => X] {
def (r: Ctx => A) flatMap [A, B] (f: A => Ctx => B): Ctx => B =
ctx => f(r(ctx))(ctx)
def pure[A](x: A): Ctx => A =
Expand Down