Skip to content

Commit 47f5f7e

Browse files
authored
tutorial - fix typo
1 parent 71eaad8 commit 47f5f7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ import cats.effect.std.Console
649649
import cats.syntax.all._
650650
import collection.immutable.Queue
651651

652-
def consumer[F[_] : Sync: Console](queueR: Ref[F, Queue[Int]]): F[Unit] =
652+
def consumer[F[_]: Sync: Console](queueR: Ref[F, Queue[Int]]): F[Unit] =
653653
for {
654654
iO <- queueR.modify{ queue =>
655655
queue.dequeueOption.fold((queue, Option.empty[Int])){case (i,queue) => (queue, Option(i))}
@@ -697,7 +697,7 @@ The full implementation of this naive producer consumer is available
697697

698698
Our `run` function instantiates the shared queue wrapped in a `Ref` and boots
699699
the producer and consumer in parallel. To do to it uses `parMapN`, that creates
700-
and runs the fibers that will run the `IO`s passed as paremeter. Then it takes
700+
and runs the fibers that will run the `IO`s passed as parameter. Then it takes
701701
the output of each fiber and and applies a given function to them. In our case
702702
both producer and consumer shall run forever until user presses CTRL-C which
703703
will trigger a cancelation.

0 commit comments

Comments
 (0)