Skip to content

Commit

Permalink
πŸ§‘β€πŸ’» Change default toString to renderWithPrefix
Browse files Browse the repository at this point in the history
  • Loading branch information
jwojnowski committed Apr 1, 2024
1 parent 16e21ab commit 1860a3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/me/wojnowski/humanoid/HumanId.scala
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ final case class HumanId[P <: String, Id](id: Id)(implicit valueOfPrefix: ValueO

def renderNoPrefix: String = IdConverter[Id].renderString(id)

override def toString: String = s"${HumanId.productPrefix}[\"${valueOfPrefix.value}\"]($renderNoPrefix)"
override def toString: String = renderWithPrefix
}

case object HumanId {
Expand Down

0 comments on commit 1860a3f

Please sign in to comment.