diff --git a/README.md b/README.md index 36eedb0..76f9f15 100644 --- a/README.md +++ b/README.md @@ -29,10 +29,10 @@ val InvoiceId = new HumanIdOps["inv", String] type CustomerId = HumanId["cus", String] val CustomerId = new HumanIdOps["cus", String] -val invoiceId1: Either[String, InvoiceId] = InvoiceId.parseRequirePrefix("inv_1234") -val invoiceId2: InvoiceId = InvoiceId.fromId("2345") +val invoiceId1: Either[String, InvoiceId] = InvoiceId.parseRequirePrefix("inv_q6CQPBY4yscNnHLan9dJyhLt") +val invoiceId2: InvoiceId = InvoiceId.fromId("H2ggLQjE3txWzIAGstc6nmmn") -val customerId1: Either[String, CustomerId] = CustomerId.parseRequirePrefix("cus_1234").toOption.get +val customerId1: Either[String, CustomerId] = CustomerId.parseRequirePrefix("cus_E366DWqKWTaCrDeDmU31Xk2C").toOption.get // val customerId2: CustomerId = invoiceId2 // ⚠️ compile error, as different prefixes mean different types ```