Skip to content

Commit

Permalink
reword
Browse files Browse the repository at this point in the history
  • Loading branch information
norareidy committed Oct 19, 2023
1 parent c13d776 commit 3d6a0fd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions source/fundamentals/bson.txt
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,10 @@ the following rules:
BSON Options
------------

You can create a ``BSONOptions`` instance to set BSON options on your ``Client``
instance. BSON options adjust how the driver marshals and unmarshals BSON data.
You can create a ``BSONOptions`` instance to set BSON options on your ``Client``.
BSON options adjust how the driver marshals and unmarshals BSON data.

This example performs the following actions to set BSON options on a ``Client``:
This example performs the following actions:

- Creates a ``BSONOptions`` instance by configuring the following settings:

Expand All @@ -224,8 +224,9 @@ This example performs the following actions to set BSON options on a ``Client``:
- Sets the ``DefaultDocumentD`` field to ``true``, which instructs the driver
to always unmarshal documents into the ``primitive.D`` type

- Passes the ``BSONOptions`` instance to the ``SetBSONOptions()`` method to specify
- Passes the ``BSONOptions`` instance to the ``SetBSONOptions()`` helper method to specify
a ``ClientOptions`` instance
- Creates a ``Client`` to apply the specified BSON marshalling and unmarshalling behavior

.. code-block:: go

Expand Down

0 comments on commit 3d6a0fd

Please sign in to comment.