Skip to content

Commit

Permalink
MM PR fixes 1
Browse files Browse the repository at this point in the history
  • Loading branch information
rustagir committed Aug 20, 2024
1 parent 5f7cdfa commit 7b0897b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions source/data-formats/serialization.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Add the Serialization Dependencies to Your Project
--------------------------------------------------

You must install the official {+language+} serialization library,
``kotlinx.serialization`` to serialize and deserialize data in your
``kotlinx.serialization``, to serialize and deserialize data in your
application. To learn more about this library, see the
`kotlinx.serialization GitHub repository
<https://github.com/Kotlin/kotlinx.serialization>`__.
Expand Down Expand Up @@ -209,9 +209,9 @@ To create a custom codec, your project must have the ``bson-kotlinx``
dependency. See the :ref:`kotlin-sync-add-serialization` section of this
guide for installation instructions.

Then, you can define your codec by using the `KotlinSerializerCodec.create()
You can define your codec by using the `KotlinSerializerCodec.create()
<{+java-api+}/apidocs/bson-kotlinx/bson-kotlinx/org.bson.codecs.kotlinx/-kotlin-serializer-codec/-companion/index.html>`__
method and add it to the registry.
method, then you can add the codec to the registry.

Custom Codec Example
~~~~~~~~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion source/includes/data-formats/serialization.kt
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ fun main() {
.firstOrNull()
println(resultTeacher)

val resultStudent =collection.withDocumentClass<Student>()
val resultStudent = collection.withDocumentClass<Student>()
.find(Filters.exists("grade"))
.firstOrNull()
println(resultStudent)
Expand Down

0 comments on commit 7b0897b

Please sign in to comment.