diff --git a/docs/tutorial.md b/docs/tutorial.md index 91fd4e62a8..b793107b62 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -267,7 +267,6 @@ of the bytes transferred. ```scala mdoc:compile-only import cats.effect.IO -import cats.syntax.all._ import java.io._ def transfer(origin: InputStream, destination: OutputStream, buffer: Array[Byte], acc: Long): IO[Long] = @@ -820,7 +819,7 @@ The producer, for its part, will: Thus the producer will look like: ```scala mdoc:compile-only -import cats.effect.{Deferred, Ref, Sync} +import cats.effect.{Async, Deferred, Ref} import cats.effect.std.Console import cats.syntax.all._ import scala.collection.immutable.Queue @@ -836,7 +835,7 @@ def producer[F[_]: Async: Console](id: Int, counterR: Ref[F, Int], stateR: Ref[F val (taker, rest) = takers.dequeue State(queue, rest) -> taker.complete(i).void case State(queue, takers) => - State(queue.enqueue(i), takers) -> Sync[F].unit + State(queue.enqueue(i), takers) -> Async[F].unit }.flatten for {