From 38c887e4226b96044f89cdb05290d6eb76e4f05b Mon Sep 17 00:00:00 2001 From: Adam Fraser Date: Wed, 17 Aug 2022 21:16:53 -0700 Subject: [PATCH] clarify documentation --- core/shared/src/main/scala/zio/ZIO.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/shared/src/main/scala/zio/ZIO.scala b/core/shared/src/main/scala/zio/ZIO.scala index fa630e448744..4bac7ebc828c 100644 --- a/core/shared/src/main/scala/zio/ZIO.scala +++ b/core/shared/src/main/scala/zio/ZIO.scala @@ -674,14 +674,14 @@ sealed trait ZIO[-R, +E, +A] /** * A more powerful version of `fold` that allows recovering from any kind of - * failure except interruptions. + * failure except external interruption. */ final def foldCause[B](failure: Cause[E] => B, success: A => B)(implicit trace: Trace): URIO[R, B] = foldCauseZIO(c => ZIO.succeedNow(failure(c)), a => ZIO.succeedNow(success(a))) /** * A more powerful version of `foldZIO` that allows recovering from any kind - * of failure except interruptions. + * of failure except external interruption. */ final def foldCauseZIO[R1 <: R, E2, B]( failure: Cause[E] => ZIO[R1, E2, B],