From 66c3468e0e695ed5bd1f6c7d34b1146034278e62 Mon Sep 17 00:00:00 2001 From: Gabriel Volpe Date: Sun, 12 Aug 2018 18:13:54 +0900 Subject: [PATCH] Small fix in guide. --- site/src/main/tut/guide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site/src/main/tut/guide.md b/site/src/main/tut/guide.md index 3beed98..ba432d9 100644 --- a/site/src/main/tut/guide.md +++ b/site/src/main/tut/guide.md @@ -19,7 +19,7 @@ val program: IO[Unit] = for { _ <- putStrLn("Please enter your name: ") n <- readLn - _ <- if (n.nonEmpty) putStrLn(s"Hello $$n!") + _ <- if (n.nonEmpty) putStrLn(s"Hello $n!") else putError("Name is empty!") } yield () ``` @@ -34,7 +34,7 @@ def myProgram[F[_]: Monad](implicit C: Console[F]): F[Unit] = for { _ <- C.putStrLn("Please enter your name: ") n <- C.readLn - _ <- if (n.nonEmpty) C.putStrLn(s"Hello $$n!") + _ <- if (n.nonEmpty) C.putStrLn(s"Hello $n!") else C.putError("Name is empty!") } yield () ```