Skip to content

Commit 4c81c46

Browse files
aestevebishabosha
andauthored
parameterised type with abstract members => trait
Co-Authored-By: Jamie Thompson <[email protected]>
1 parent 8607014 commit 4c81c46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/reference/contextual/typeclasses-new.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ given readerMonad[Ctx] as Monad[[X] =>> Ctx => X] {
265265

266266
### Summary
267267

268-
The definition of a _typeclass_ is expressed in Scala 3 via a `trait`.
268+
The definition of a _typeclass_ is expressed via a parameterised type with abstract members, such as a `trait`.
269269
The main difference with other traits resides in how these traits are implemented.
270270
In the case of a _typeclass_ the trait's implementations are expressed through `given ... as` type definitions, and not through classes that `extends` the trait linearly.
271271

0 commit comments

Comments
 (0)