Skip to content

Commit 0515f5b

Browse files
recursive-rat4Pavel Vasin
andauthored
Fix incorrect spelling of documentation tag (#2310)
Co-authored-by: Pavel Vasin <[email protected]>
1 parent 7a35a2d commit 0515f5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public fun serializer(
108108
* Variance of [type]'s arguments is not used by the serialization and is not taken into account.
109109
* Star projections in [type]'s arguments are prohibited.
110110
*
111-
* @returns [KSerializer] for the given [type] or `null` if serializer cannot be created (given [type] or its type argument is not serializable).
111+
* @return [KSerializer] for the given [type] or `null` if serializer cannot be created (given [type] or its type argument is not serializable).
112112
* @throws IllegalArgumentException if any of [type]'s arguments contains star projection
113113
*/
114114
public fun serializerOrNull(type: KType): KSerializer<Any?>? = EmptySerializersModule().serializerOrNull(type)
@@ -174,7 +174,7 @@ public fun SerializersModule.serializer(
174174
* Variance of [type]'s arguments is not used by the serialization and is not taken into account.
175175
* Star projections in [type]'s arguments are prohibited.
176176
*
177-
* @returns [KSerializer] for the given [type] or `null` if serializer cannot be created (given [type] or its type argument is not serializable and is not registered in [this] module).
177+
* @return [KSerializer] for the given [type] or `null` if serializer cannot be created (given [type] or its type argument is not serializable and is not registered in [this] module).
178178
* @throws IllegalArgumentException if any of [type]'s arguments contains star projection
179179
*/
180180
public fun SerializersModule.serializerOrNull(type: KType): KSerializer<Any?>? =

0 commit comments

Comments
 (0)