Skip to content

Commit a076eea

Browse files
author
Arnaud ESTEVE
committed
Fix typos on the reader monad
1 parent 8118ed7 commit a076eea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/reference/contextual/typeclasses-new.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,9 @@ given optionMonad as Monad[Option] {
199199
#### The Reader Monad
200200

201201
Another example of a `Monad` is the Reader Monad. It no longer acts on a type like `List` or `Option`, but on a function.
202-
It can be used for example for combining functions that all have need the same type of parameter, for instance, if multiple functions need to access some configuration, context, environment variables, etc.
202+
It can be used for example for combining functions that all need the same type of parameter. For instance multiple functions needing access to some configuration, context, environment variables, etc.
203203

204-
The Reader monad allows to abstract over such a `Config` dependency (or context, environment, ...), named `Ctx` in the following examples. It is therefore _parameterized_ by `Ctx`:
204+
The Reader monad allows to abstract over such a configuration dependency (or context, environment, ...), named `Ctx` in the following examples. It is therefore _parameterized_ by `Ctx`:
205205

206206
```scala
207207
given readerMonad[Ctx] as Monad[[X] =>> Ctx => X] {

0 commit comments

Comments
 (0)