Skip to content

Commit

Permalink
Merge pull request #4046 from steve-e/4045-applicative-error-example-fix
Browse files Browse the repository at this point in the history
4045 Add missing else keyword to example
  • Loading branch information
rossabaker authored Nov 18, 2021
2 parents 3166190 + 35f0454 commit 0b01db8
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 0b01db8

Please sign in to comment.