@@ -15,7 +15,7 @@ enum Tree[T] derives Eq, Ordering, Show {
1515}
1616```
1717
18- The ` derives ` clause generates the follwoing given instances for the ` Eq ` , ` Ordering ` and ` Show ` type classes in the
18+ The ` derives ` clause generates the following given instances for the ` Eq ` , ` Ordering ` and ` Show ` type classes in the
1919companion object of ` Tree ` ,
2020
2121``` scala
@@ -47,7 +47,7 @@ derivation support.
4747 type MirroredType
4848
4949 /** the type of the elements of the mirrored type */
50- type MirroedElemTypes
50+ type MirroredElemTypes
5151
5252 /** The mirrored *-type */
5353 type MirroredMonoType
@@ -74,8 +74,8 @@ derivation support.
7474 }
7575```
7676
77- Product types (ie . case classes and objects, and enum cases) have mirrors which are subtypes of ` Mirror.Product ` . Sum
78- types (ie . sealed class or traits with product children, and enums) have mirrors which are subtypes of ` Mirror.Sum ` .
77+ Product types (i.e . case classes and objects, and enum cases) have mirrors which are subtypes of ` Mirror.Product ` . Sum
78+ types (i.e . sealed class or traits with product children, and enums) have mirrors which are subtypes of ` Mirror.Sum ` .
7979
8080For the ` Tree ` ADT from above the following ` Mirror ` instances will be automatically provided by the compiler,
8181
@@ -146,8 +146,8 @@ That is, the `derived` method takes a given parameter of (some subtype of) type
146146the deriving type ` T ` , and computes the type class implementation according to that shape. This is all that the
147147provider of an ADT with a ` derives ` clause has to know about the derivation of a type class instance.
148148
149- Note that ` derived ` methods may have given ` Mirror ` arguments indirectly (eg . by having a given argument which in turn
150- has a given ` Mirror ` , or not at all (eg . they might use some completely different user-provided mechanism, for
149+ Note that ` derived ` methods may have given ` Mirror ` arguments indirectly (e.g . by having a given argument which in turn
150+ has a given ` Mirror ` , or not at all (e.g . they might use some completely different user-provided mechanism, for
151151instance using Dotty macros or runtime reflection). We expect that (direct or indirect) ` Mirror ` based implementations
152152will be the most common and that is what this document emphasises.
153153
0 commit comments