diff --git a/core/src/main/scala/cats/data/NonEmptyVector.scala b/core/src/main/scala/cats/data/NonEmptyVector.scala index dcc7f4fb98..6fdac77621 100644 --- a/core/src/main/scala/cats/data/NonEmptyVector.scala +++ b/core/src/main/scala/cats/data/NonEmptyVector.scala @@ -54,7 +54,7 @@ final class NonEmptyVector[A] private (val toVector: Vector[A]) extends AnyVal { /** * Append another `NonEmptyVector` to this, producing a new `NonEmptyVector`. */ - def concatNEV(other: NonEmptyVector[A]): NonEmptyVector[A] = new NonEmptyVector(toVector ++ other.toVector) + def concatNev(other: NonEmptyVector[A]): NonEmptyVector[A] = new NonEmptyVector(toVector ++ other.toVector) /** * Find the first element matching the predicate, if one exists @@ -140,7 +140,7 @@ private[data] sealed trait NonEmptyVectorInstances { with Comonad[NonEmptyVector] with Traverse[NonEmptyVector] with MonadRec[NonEmptyVector] { def combineK[A](a: NonEmptyVector[A], b: NonEmptyVector[A]): NonEmptyVector[A] = - a concatNEV b + a concatNev b override def split[A](fa: NonEmptyVector[A]): (A, Vector[A]) = (fa.head, fa.tail) diff --git a/tests/src/test/scala/cats/tests/NonEmptyVectorTests.scala b/tests/src/test/scala/cats/tests/NonEmptyVectorTests.scala index ca5c99ce7f..36c0ebab5d 100644 --- a/tests/src/test/scala/cats/tests/NonEmptyVectorTests.scala +++ b/tests/src/test/scala/cats/tests/NonEmptyVectorTests.scala @@ -173,9 +173,9 @@ class NonEmptyVectorTests extends CatsSuite { } } - test("++ Vector is consistent with concatNEV") { + test("++ Vector is consistent with concatNev") { forAll { (nonEmptyVector: NonEmptyVector[Int], other: NonEmptyVector[Int]) => - nonEmptyVector ++ other.toVector should === (nonEmptyVector.concatNEV(other)) + nonEmptyVector ++ other.toVector should === (nonEmptyVector.concatNev(other)) } }