From a1667f827cf4c0e9d2551f744eda5247488c695d Mon Sep 17 00:00:00 2001 From: Jamie Thompson Date: Tue, 20 Sep 2022 16:06:33 +0200 Subject: [PATCH] Add missing parentheses Random.nextLong() requires parentheses --- _tour/extractor-objects.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_tour/extractor-objects.md b/_tour/extractor-objects.md index 4cc8ac4bc3..a859d6cdda 100644 --- a/_tour/extractor-objects.md +++ b/_tour/extractor-objects.md @@ -42,7 +42,7 @@ import scala.util.Random object CustomerID: - def apply(name: String) = s"$name--${Random.nextLong}" + def apply(name: String) = s"$name--${Random.nextLong()}" def unapply(customerID: String): Option[String] = val stringArray: Array[String] = customerID.split("--")