Skip to content

Commit

Permalink
docs(polymorphism): fixing a typo (Kotlin#1731)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimakis authored and ansman committed Nov 1, 2021
1 parent 4d584e5 commit c227e0d
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 c227e0d

Please sign in to comment.