8000 Update README.md · CJavaScala/each@f1e6f64 · GitHub
[go: up one dir, main page]

Ski 8000 p to content

Commit f1e6f64

Browse files
committed
Update README.md
1 parent 475e773 commit f1e6f64

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@ val result: Option[String] = monadic[Option] {
104104
``` scala
105105
var count = 0
106106
val io = catchIoMonadic[IO] {
107-
count += 1 // Evaluating immediately
108-
val _ = IO(()).each // Paused until io.unsafePerformIO()
107+
count += 1 // Evaluates immediately
108+
val _ = IO(()).each // Pauses until io.unsafePerformIO()
109109
try {
110110
count += 1
111-
(null: Array[Int])(0) // Will throw a NullPointerException
111+
(null: Array[Int])(0) // Throws a NullPointerException
112112
} catch {
113113
case e: NullPointerException => {
114114
count += 1

0 commit comments

Comments
 (0)
0