Skip to content

Commit

Permalink
Fix the error message.
Browse files Browse the repository at this point in the history
`mdoc:reset` somehow breaks the error message only in CI.
  • Loading branch information
tarao committed Dec 26, 2023
1 parent 0d0e37e commit c8e8f1b
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions docs/advanced/generic.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,8 @@ For example, `withEmail` method, which expects a domain name and returns a recor
by `email` field of E-mail address, whose local part is filled by the first segment of
`name` field of the original record, can be defined as the following.

```scala mdoc:reset:invisible
```

```scala mdoc:mline
import com.github.tarao.record4s.{%, Tag}
import com.github.tarao.record4s.Tag
import com.github.tarao.record4s.typing.Record.Append

trait Person
Expand Down Expand Up @@ -79,11 +76,10 @@ val person = %(name = "tarao fuguta", age = 3)
There is also `typing.Record.Concat` to calculate concatenation of two record types. The
above example can be rewritten with `Concat` as the following.

```scala mdoc:reset:invisible
```scala mdoc:nest:invisible
```

```scala mdoc:mline
import com.github.tarao.record4s.{%, Tag}
import com.github.tarao.record4s.typing.Record.Concat

trait Person
Expand All @@ -107,11 +103,6 @@ Concatenating Two Generic Records
You may think that you can define a method to concatenate two generic records by using
`Concat` but it doesn't work in a simple way.

```scala mdoc:reset:invisible
import com.github.tarao.record4s.%
import com.github.tarao.record4s.typing.Record.Concat
```

```scala mdoc:fail
def concat[R1 <: %, R2 <: %, RR <: %](r1: R1, r2: R2)(using
Concat.Aux[R1, R2, RR],
Expand Down

0 comments on commit c8e8f1b

Please sign in to comment.