Skip to content

Fix syntax in docs #6654

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
Jun 10, 2019
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