Skip to content

Commit

Permalink
readmine typo
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigogdea committed Apr 13, 2020
1 parent 609d389 commit d7919b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ val eventAdapter = EventAdapterFactory.adapt[Type4](withManifest = "SomeEvent",
```
Traits famlily (`sealed trait`), aka: sum types, are mapped automatically:
```scala
sealed trait InvoceLineType
sealed trait InvoiceLineType
case object ProductLine extends InvoiceLineType
...
case class InvoiceLine(lineType: InvoceLineType, ...)
case class InvoiceLine(lineType: InvoiceLineType, ...)
case class InvoiceLineAdded(line: InvoiceLine)
...
implicit val conf = MacroConfiguration(discriminator = "_type", typeNaming = TypeNaming.SimpleName)
Expand Down

0 comments on commit d7919b6

Please sign in to comment.