Skip to content

Commit e4fa8a3

Browse files
authored
Update Annotations.kt, fixed typo: RgpPixel -> RgbPixel (#2793)
It was RgpPixel but it should be RgbPixel as the class with this name was declared before: `class RgbPixel(val red: Short, val green: Short, val blue: Short)`
1 parent d344086 commit e4fa8a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/commonMain/src/kotlinx/serialization/Annotations.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ import kotlin.reflect.*
3939
*
4040
* @Serializable
4141
* class RgbExample(
42-
* @Serializable(with = RgbAsHexString::class) p1: RgpPixel, // Serialize as HEX string, e.g. #FFFF00
43-
* @Serializable(with = RgbAsSingleInt::class) p2: RgpPixel, // Serialize as single integer, e.g. 16711680
44-
* p3: RgpPixel // Serialize as 3 short components, e.g. { "red": 255, "green": 255, "blue": 0 }
42+
* @Serializable(with = RgbAsHexString::class) p1: RgbPixel, // Serialize as HEX string, e.g. #FFFF00
43+
* @Serializable(with = RgbAsSingleInt::class) p2: RgbPixel, // Serialize as single integer, e.g. 16711680
44+
* p3: RgbPixel // Serialize as 3 short components, e.g. { "red": 255, "green": 255, "blue": 0 }
4545
* )
4646
* ```
4747
* In this example, each pixel will be serialized using different data representation.

0 commit comments

Comments
 (0)