1
0
mirror of https://github.com/IBM/fp-go.git synced 2025-08-10 22:31:32 +02:00

fixed typo in ioeither ChainFirstIOK doc line

This commit is contained in:
Dre
2023-09-18 15:48:00 -07:00
committed by GitHub
parent 705b71d95c
commit b4d2a5c6be

View File

@@ -187,7 +187,7 @@ func MonadChainFirstIOK[E, A, B any](ma IOEither[E, A], f func(A) I.IO[B]) IOEit
return G.MonadChainFirstIOK(ma, f) return G.MonadChainFirstIOK(ma, f)
} }
// ChainFirsIOKt runs the monad returned by the function but returns the result of the original monad // ChainFirsIOK runs the monad returned by the function but returns the result of the original monad
func ChainFirstIOK[E, A, B any](f func(A) I.IO[B]) func(IOEither[E, A]) IOEither[E, A] { func ChainFirstIOK[E, A, B any](f func(A) I.IO[B]) func(IOEither[E, A]) IOEither[E, A] {
return G.ChainFirstIOK[IOEither[E, A]](f) return G.ChainFirstIOK[IOEither[E, A]](f)
} }