Skip to content
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.

Commit

Permalink
Small fix in guide.
Browse files Browse the repository at this point in the history
  • Loading branch information
gvolpe committed Aug 12, 2018
1 parent 5cf42fd commit 66c3468
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/src/main/tut/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()
```
Expand All @@ -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 ()
```

0 comments on commit 66c3468

Please sign in to comment.