Skip to content

Commit 911d23f

Browse files
author
Kevin Won
committed
fixed syntax error
1 parent dc1e993 commit 911d23f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/std/random.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ object BusinessLogic {
5050

5151
// use the standard implementation of Random backed by java.util.Random()
5252
// (the same implementation as Random.javaUtilRandom(43))
53-
implicit r: IO[Random[IO]] = Random.scalaUtilRandom[IO]
53+
implicit val r: IO[Random[IO]] = Random.scalaUtilRandom[IO]
5454

5555
// other possible implemntations you could choose
5656
val sr = SecureRandom.javaSecuritySecureRandom(3) // backed java.security.SecureRandom()
@@ -90,7 +90,7 @@ class MagicSpec extends AnyFunSuite {
9090

9191
// for testing, create a Random instance that gives back the same number ever time.
9292
// with a "stable" version of Random, we
93-
implicit r: IO[Random[IO]] = IO(
93+
implicit val r: IO[Random[IO]] = IO(
9494
new Random[IO] {
9595
def betweenInt(minInclusive: Int, maxExclusive: Int): IO[Int] =
9696
IO(7) // gives back 7 every call

0 commit comments

Comments
 (0)