Skip to content

Commit 497f4a2

Browse files
author
JCranky
committed
Use concatNel instead of concat
1 parent 76cb985 commit 497f4a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/cats/data/NonEmptyList.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ final case class NonEmptyList[+A](head: A, tail: List[A]) {
110110
* }}}
111111
*/
112112
def :::[AA >: A](other: NonEmptyList[AA]): NonEmptyList[AA] =
113-
other.concat(this)
113+
other.concatNel(this)
114114

115115
/**
116116
* Remove elements not matching the predicate

0 commit comments

Comments
 (0)