Skip to content

Commit 5848788

Browse files
committed
docs: use scala 3 braceless syntax
1 parent fe6390a commit 5848788

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,14 @@ import dev.profunktor.redis4cats.effect.Log.Stdout.given
1919
object QuickStart extends IOApp.Simple:
2020

2121
val run: IO[Unit] =
22-
Redis[IO].utf8("redis://localhost").use { redis =>
22+
Redis[IO].utf8("redis://localhost").use: redis =>
2323
for
2424
_ <- redis.set("foo", "123")
2525
x <- redis.get("foo")
2626
_ <- redis.setNx("foo", "should not happen")
2727
y <- redis.get("foo")
28-
_ <- IO(println(x === y)) // true
28+
_ <- IO(assert(x === y))
2929
yield ()
30-
}
3130
```
3231

3332
The API is quite stable and *heavily used in production*. However, binary compatibility is not guaranteed across versions for now.

0 commit comments

Comments
 (0)