Skip to content

Commit fb80a9c

Browse files
committed
That does work due to package
1 parent 34e4b76 commit fb80a9c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/pages/type-classes/cats.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,9 @@ The companion object of every Cats type class has an `apply` method
3434
that locates an instance for any type we specify:
3535

3636
```scala mdoc
37-
val showInt = Show.apply[Int]
37+
given showInt: Show[Int] = Show.apply[Int]
3838
```
3939

40-
Oops---that didn't work!
41-
The `apply` method uses *implicits* to look up individual instances,
42-
so we'll have to bring some instances into scope.
43-
4440
### Importing Default Instances {#sec:importing-default-instances}
4541

4642
The [`cats.instances`][cats.instances] package

0 commit comments

Comments
 (0)