Skip to content

Commit aed3864

Browse files
Apply suggestions from code review
Co-authored-by: Luca Kellermann <[email protected]>
1 parent 4b75d91 commit aed3864

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/commonMain/src/kotlinx/serialization/descriptors/SerialDescriptor.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,8 @@ public interface SerialDescriptor {
270270
* @Serializable
271271
* class Outer(@OnPropertySerialAnnotation val nested: Nested)
272272
*
273+
* val outerDescriptor = Outer.serializer().descriptor
274+
*
273275
* outerDescriptor.getElementAnnotations(0) // Returns [@OnPropertySerialAnnotation]
274276
* outerDescriptor.getElementDescriptor(0).annotations // Returns [@OnClassSerialAnnotation]
275277
* ```
@@ -332,6 +334,8 @@ public interface SerialDescriptor {
332334
* @Serializable
333335
* class Outer(@OnPropertySerialAnnotation val nested: Nested)
334336
*
337+
* val outerDescriptor = Outer.serializer().descriptor
338+
*
335339
* outerDescriptor.getElementAnnotations(0) // Returns [@OnPropertySerialAnnotation]
336340
* outerDescriptor.getElementDescriptor(0).annotations // Returns [@OnClassSerialAnnotation]
337341
* ```

0 commit comments

Comments
 (0)