Skip to content

Commit 39ae333

Browse files
authored
Update GenCodec.md
1 parent cac0bef commit 39ae333

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/GenCodec.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ All annotations are governed by [annotation processing](Annotations.md) rules.
695695
1. Adding classes or objects to sealed hierarchy is always safe.
696696
1. Changing name of an object or class in sealed hierarchy is safe as long as you annotate that class/object with `@name`
697697
annotation to retain the old name in serialized format.
698-
1. Lifting a case class into a sealed hierarchy is safe as long as the flat format is used for the sealed
698+
1. Lifting a case class into a sealed hierarchy is safe as long as the [flat format](#flat-format) is used for the sealed
699699
hierarchy and existing case class remains one of the cases in the sealed hierarchy, annotated as `@defaultCase`.
700700

701701
Of course, the above rules are guaranteed to work only for macro-materialized codecs.

0 commit comments

Comments
 (0)