Skip to content

Commit 6152a99

Browse files
committed
added derives CanEqual
Signed-off-by: Konstantin Läufer <[email protected]>
1 parent c952beb commit 6152a99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/objectoriented.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ These abstractions are often combined, e.g., aggregation, structural recursion,
142142

143143
.. code-block:: scala
144144
145-
enum Tree[A]:
145+
enum Tree[A] deriving CanEqual:
146146
case Leaf[A](val data: A) extends Tree[A]
147147
case Node[A](val children: Tree[A]*) extends Tree[A]
148148

0 commit comments

Comments
 (0)