Skip to content

Commit

Permalink
Merge pull request #531 from ant8e/patch-1
Browse files Browse the repository at this point in the history
Fix example in documentation
  • Loading branch information
mpilquist authored Oct 1, 2022
2 parents 8022162 + 7d27fc0 commit c202765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/docs/src/main/paradox/reference/spans.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ This approach might make sense if you're using a concrete effect type with no "r
A nicer way to pass the current span around is to use the `Trace` constraint, which ensures that there is always a current span. With this strategy you never have see `Span` reference at all, but instead use the `Trace` instance directly.

```scala mdoc
def wibble[F[_]: Trace: Monad](name: String, age: Int, parent: Span[F]): F[Unit] =
def wibble[F[_]: Trace: Monad](name: String, age: Int): F[Unit] =
Trace[F].span("wibble") {
for {
_ <- Trace[F].put("name" -> name, "age" -> age)
Expand Down

0 comments on commit c202765

Please sign in to comment.