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("--")