Skip to content

Commit 1f7372a

Browse files
authored
Fix all misuses of the article "the" before a class name enclosed in backticks (#2589)
1 parent 043e586 commit 1f7372a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docs/builtin-classes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ fun main() {
427427
```
428428
> You can get the full code [here](../guide/example/example-builtin-13.kt).
429429
430-
When encoding, the serializer for the `Nothing` was not used
430+
When encoding, the serializer for `Nothing` was not used
431431

432432
```text
433433
{"value":42}

docs/formats.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ A decoder needs to implement more substance.
648648
in the `elementIndex` variable. See
649649
the [Hand-written composite serializer](serializers.md#hand-written-composite-serializer) section
650650
on how it ends up being used.
651-
* [beginStructure][Decoder.beginStructure] — returns a new instance of the `ListDecoder`, so that
651+
* [beginStructure][Decoder.beginStructure] — returns a new instance of `ListDecoder`, so that
652652
each structure that is being recursively decoded keeps track of its own `elementIndex` state separately.
653653

654654
```kotlin

docs/polymorphism.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ data class OkResponse<out T>(val data: T) : Response<T>()
713713

714714
Kotlin Serialization does not have a builtin strategy to represent the actually provided argument type for the
715715
type parameter `T` when serializing a property of the polymorphic type `OkResponse<T>`. We have to provide this
716-
strategy explicitly when defining the serializers module for the `Response`. In the below example we
716+
strategy explicitly when defining the serializers module for `Response`. In the below example we
717717
use `OkResponse.serializer(...)` to retrieve
718718
the [Plugin-generated generic serializer](serializers.md#plugin-generated-generic-serializer) of
719719
the `OkResponse` class and instantiate it with the [PolymorphicSerializer] instance with

docs/serializers.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ String is considered to be a primitive type, therefore we used `PrimitiveClassDe
387387
Now let's see what our actions would be if we have to serialize `Color` as another non-primitive type, let's say `IntArray`.
388388

389389
An implementation of [KSerializer] for our original `Color` class is going to perform a conversion between
390-
`Color` and `IntArray`, but delegate the actual serialization logic to the `IntArraySerializer`
390+
`Color` and `IntArray`, but delegate the actual serialization logic to `IntArraySerializer`
391391
using [encodeSerializableValue][Encoder.encodeSerializableValue] and
392392
[decodeSerializableValue][Decoder.decodeSerializableValue].
393393

0 commit comments

Comments
 (0)