From e23a06dbdf765953f03f19f704e9e0cc6a01df59 Mon Sep 17 00:00:00 2001 From: Matthias Berndt Date: Tue, 1 Aug 2023 20:10:48 +0200 Subject: [PATCH] tiny refactoring --- README.md | 2 +- docs/index.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 567e1e5b..6fa27072 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ object ZIOFTPExample extends ZIOAppDefault { .via(ZPipeline.utf8Decode) .runCollect _ <- Console.printLine(s"Content of $path file:") - _ <- Console.printLine(file.fold("")(_ + _)) + _ <- Console.printLine(file.mkString) } yield () override def run = myApp.provideSomeLayer(unsecure(settings)) diff --git a/docs/index.md b/docs/index.md index c07e610e..11cc53ad 100644 --- a/docs/index.md +++ b/docs/index.md @@ -93,7 +93,7 @@ object ZIOFTPExample extends ZIOAppDefault { .via(ZPipeline.utf8Decode) .runCollect _ <- Console.printLine(s"Content of $path file:") - _ <- Console.printLine(file.fold("")(_ + _)) + _ <- Console.printLine(file.mkString) } yield () override def run = myApp.provideSomeLayer(unsecure(settings))