diff --git a/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/NonEmptyList.kt b/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/NonEmptyList.kt index 80e58e68eb1..d823b9fc482 100644 --- a/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/NonEmptyList.kt +++ b/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/NonEmptyList.kt @@ -237,10 +237,9 @@ public class NonEmptyList( @Deprecated( "Use toNonEmptyListOrNull instead", ReplaceWith( - "Option.fromNullable>(l.toNonEmptyListOrNull())", + "l.toNonEmptyListOrNull().toOption()", "import arrow.core.toNonEmptyListOrNull", - "import arrow.core.Option", - "import arrow.core.NonEmptyList" + "import arrow.core.toOption" ) ) @JvmStatic