Skip to content

Commit

Permalink
Use concatNel instead of concat
Browse files Browse the repository at this point in the history
  • Loading branch information
JCranky committed Oct 18, 2017
1 parent 76cb985 commit 497f4a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/cats/data/NonEmptyList.scala
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ final case class NonEmptyList[+A](head: A, tail: List[A]) {
* }}}
*/
def :::[AA >: A](other: NonEmptyList[AA]): NonEmptyList[AA] =
other.concat(this)
other.concatNel(this)

/**
* Remove elements not matching the predicate
Expand Down

0 comments on commit 497f4a2

Please sign in to comment.