Skip to content

Commit

Permalink
Update either.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
kailuowang committed Jan 12, 2018
1 parent 60e9227 commit 892c8fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/cats/syntax/either.scala
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ final class EitherIdOps[A](val obj: A) extends AnyVal {
* res0: Either[NonEmptyList[String], Int] = Left(NonEmptyList(Err))
* }}}
*/
def leftNel[B]: Either[NonEmptyList[A], B] = Left(NonEmptyList.of(obj))
def leftNel[B]: Either[NonEmptyList[A], B] = Left(NonEmptyList.one(obj))

/**
* Wrap a value to a right EitherNel
Expand Down

0 comments on commit 892c8fc

Please sign in to comment.