Skip to content

Commit

Permalink
Fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
geirolz committed Dec 26, 2022
1 parent f9e1c41 commit 93fa8cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions modules/cats-xml/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ val allPersonRules: NonEmptyList[Rule[Id, Person]] = NonEmptyList.of(
.targetInfo("age")
.contramap(_.age)
)
// allPersonRules: NonEmptyList[Rule[Id, Person]] = NonEmptyList(RuleImpl(scala.Function1$$Lambda$12894/0x0000000802cbcc38@791d9aef,Check UK citizenship,None,Some(citizenship)), RuleImpl(scala.Function1$$Lambda$12894/0x0000000802cbcc38@4c8568e9,Check Age >= 18,None,Some(age)))
// allPersonRules: NonEmptyList[Rule[Id, Person]] = NonEmptyList(RuleImpl(scala.Function1$$Lambda$12894/0x0000000802cbcc38@120c9bb3,Check UK citizenship,None,Some(citizenship)), RuleImpl(scala.Function1$$Lambda$12894/0x0000000802cbcc38@640937ce,Check Age >= 18,None,Some(age)))
```

Import
Expand Down Expand Up @@ -83,7 +83,7 @@ implicit val personEncoder: Encoder[Person] = Encoder.of(person =>
)
```

And create the JSON report
And create the XML report
```scala
import erules.core.*
import erules.implicits.*
Expand Down Expand Up @@ -125,7 +125,7 @@ result.unsafeRunSync().asXmlReport
// </Reasons>
// </Verdict>
// <ExecutionTime>
// <Duration length="134583" unit="NANOSECONDS"/>
// <Duration length="94750" unit="NANOSECONDS"/>
// </ExecutionTime>
// </RuleResult>
// <RuleResult>
Expand All @@ -138,7 +138,7 @@ result.unsafeRunSync().asXmlReport
// </Reasons>
// </Verdict>
// <ExecutionTime>
// <Duration length="8833" unit="NANOSECONDS"/>
// <Duration length="10500" unit="NANOSECONDS"/>
// </ExecutionTime>
// </RuleResult>
// </EvaluatedRules>
Expand Down
2 changes: 1 addition & 1 deletion modules/cats-xml/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ implicit val personEncoder: Encoder[Person] = Encoder.of(person =>
)
```

And create the JSON report
And create the XML report
```scala mdoc:to-string
import erules.core.*
import erules.implicits.*
Expand Down

0 comments on commit 93fa8cc

Please sign in to comment.