@@ -58,7 +58,7 @@ Specify a Collation
5858
5959To specify a collation, create a ``Collation`` object. You must define the ``Locale`` field
6060of the ``Collation`` object; all other fields are optional. For example, the following code
61- snippet specifies a ``Collation`` object with the ``"en_US"`` locale collation:
61+ example specifies a ``Collation`` object with the ``"en_US"`` locale collation:
6262
6363.. code-block:: go
6464
@@ -100,7 +100,7 @@ Use the Default Collation Example
100100~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
101101
102102If you call an operation that uses a collation on the ``books`` collection, the operation
103- will now use the default collation specified in the :ref:`golang-create-collection`.
103+ uses the default collation specified in the :ref:`golang-create-collection`.
104104
105105Assume the ``books`` collection contains the following documents:
106106
@@ -173,8 +173,8 @@ doesn't perform the ordering for sorting operations in-memory.
173173
174174To use the index in an operation, your operation must use the same collation as the one
175175specified in the index. Additionally, ensure that the operation is covered by the index that
176- contains the collation. Set a collation through an ``IndexOptions`` object and call the
177- ``CreateOne()`` method with your options object as an argument .
176+ contains the collation. Set a collation through an ``IndexOptions`` object and pass this object
177+ as an argument to the ``CreateOne()`` method.
178178
179179Example
180180~~~~~~~
@@ -234,8 +234,8 @@ Example
234234You can use operations that support collation to update and query documents in the
235235``books`` collection.
236236
237- The following example uses the ``Find()`` method to return documents with ``length``
238- values greater than ``"1000"``. The ``NumericOrdering`` collation field has a value of
237+ The following example uses the ``Find()`` method to return documents in which the ``length``
238+ value is greater than ``"1000"``. The ``NumericOrdering`` collation field has a value of
239239``true`` to ensure that values are sorted in numerical order rather than alphabetical
240240order:
241241
0 commit comments