Skip to content

Commit

Permalink
fixed syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Won committed Aug 25, 2023
1 parent dc1e993 commit 911d23f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/std/random.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ object BusinessLogic {

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

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

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

0 comments on commit 911d23f

Please sign in to comment.