Skip to content

Commit

Permalink
docs(polymorphism): fixing a typo (#1731)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimakis committed Oct 19, 2021
1 parent 1814a92 commit b746ba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/polymorphism.md
Expand Up @@ -367,7 +367,7 @@ We can update the previous example and turn `Project` superclass into an interfa
mark an interface itself as `@Serializable`. No problem. Interfaces cannot have instances by themselves.
Interfaces can only be represented by instances of their derived classes. Interfaces are used in the Kotlin language to enable polymorphism,
so all interfaces are considered to be implicitly serializable with the [PolymorphicSerializer]
strategy. We just need to mark thier implementing classes as `@Serializable` and register them.
strategy. We just need to mark their implementing classes as `@Serializable` and register them.

<!--- INCLUDE
import kotlinx.serialization.modules.*
Expand Down

0 comments on commit b746ba8

Please sign in to comment.