From 35f045448d8b4a3572e2510c27b69b4ba83f0ea6 Mon Sep 17 00:00:00 2001 From: Steve Etherington <1245455+steve-e@users.noreply.github.com> Date: Wed, 17 Nov 2021 17:50:22 +0000 Subject: [PATCH] 4045 Add missing else keyword to example --- docs/src/main/mdoc/typeclasses/applicativemonaderror.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/main/mdoc/typeclasses/applicativemonaderror.md b/docs/src/main/mdoc/typeclasses/applicativemonaderror.md index 5617d59fed..df96ca508a 100644 --- a/docs/src/main/mdoc/typeclasses/applicativemonaderror.md +++ b/docs/src/main/mdoc/typeclasses/applicativemonaderror.md @@ -273,7 +273,7 @@ when things go wrong. ```scala mdoc:silent def getTemperatureFromByCoordinatesAlternate[F[_]](x: (Int, Int))(implicit me: MonadError[F, String]): F[Int] = { if (x._1 < 0 || x._2 < 0) me.raiseError("Invalid Coordinates") - for { c <- getCityClosestToCoordinate[F](x) + else for { c <- getCityClosestToCoordinate[F](x) t <- getTemperatureByCity[F](c) } yield t } ```