Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions core/shared/src/main/scala/zio/Config.scala
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ sealed trait Config[+A] { self =>
def map[B](f: A => B): Config[B] = self.mapOrFail(a => Right(f(a)))

/**
* Returns a new config whose structure is the samea as this one, but which
* may produce a different Scala value, constructed using the specified
* fallible function.
* Returns a new config whose structure is the same as this one, but which may
* produce a different Scala value, constructed using the specified fallible
* function.
*/
def mapOrFail[B](f: A => Either[Config.Error, B]): Config[B] = Config.MapOrFail(self, f)

Expand Down