Skip to content

Commit

Permalink
4045 Add missing else keyword to example
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-e committed Nov 17, 2021
1 parent 3166190 commit 35f0454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/main/mdoc/typeclasses/applicativemonaderror.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
```

0 comments on commit 35f0454

Please sign in to comment.