@@ -99,18 +99,18 @@ Find Multiple Documents Example: Full File
99
99
100
100
.. include:: /includes/usage-examples/example-intro.rst
101
101
102
- The following example finds documents in the ``restaurants`` collection
103
- in which the ``cuisine`` is ``"Italian"``, returns a cursor that
104
- references the matched documents, then unpacks the documents into a slice.
105
- Select the ** Struct** or ** bson.D** tab to see the corresponding code:
102
+ The following example finds all documents in the ``restaurants`` collection
103
+ in which the value of ``cuisine`` is ``"Italian"``. The example returns a cursor that
104
+ references the matched documents and unpacks the documents into a slice.
105
+ Select the :guilabel:` Struct` or :guilabel:` bson.D` tab to see the corresponding code:
106
106
107
107
.. tabs::
108
108
109
109
.. tab :: Struct
110
110
:tabid: structExample
111
111
112
- The following code uses structs to find documents in the ``restaurants`` collection
113
- in which the ``cuisine`` is "Italian", returning all documents that match :
112
+ The following code uses structs to find and return all documents in the
113
+ ``restaurants`` collection in which the value of ``cuisine`` is "Italian":
114
114
115
115
.. io-code-block::
116
116
:copyable: true
@@ -133,9 +133,8 @@ Select the **Struct** or **bson.D** tab to see the corresponding code:
133
133
.. tab :: bson.D
134
134
:tabid: bsonDExample
135
135
136
- The following code uses a bson.D type to find documents in the ``restaurants``
137
- collection in which the ``cuisine`` is "Italian", returning all documents
138
- that match:
136
+ The following code uses a bson.D type to find and return all documents in
137
+ the ``restaurants`` collection in which the value of ``cuisine`` is "Italian":
139
138
140
139
.. io-code-block::
141
140
:copyable: true
@@ -248,18 +247,17 @@ Find One Document Example: Full File
248
247
249
248
.. include:: /includes/usage-examples/example-intro.rst
250
249
251
- The following example finds a document that matches a query filter in the
252
- ``restaurants`` collection . Select the ** Struct** or ** bson.D** tab to see the
253
- corresponding code:
250
+ The following example finds a document in the ``restaurants`` collection that
251
+ matches a query filter . Select the :guilabel:` Struct` or :guilabel:` bson.D`
252
+ tab to see the corresponding code:
254
253
255
254
.. tabs::
256
255
257
256
.. tab :: Struct
258
257
:tabid: structExample
259
258
260
- The following code uses structs to find documents in the ``restaurants`` collection
261
- in which the ``name`` is "Bagels N Buns", returning the first document
262
- matched:
259
+ The following code uses structs to find and return the first document in the
260
+ ``restaurants`` collection in which the value of ``name`` is "Bagels N Buns":
263
261
264
262
.. io-code-block::
265
263
:copyable: true
@@ -286,10 +284,9 @@ corresponding code:
286
284
.. tab :: bson.D
287
285
:tabid: bsonDExample
288
286
289
- The following code uses a bson.D type to find documents in the ``restaurants`` collection
290
- in which the ``name`` is "Bagels N Buns", returning the first document
291
- matched:
292
-
287
+ The following code uses a bson.D type to find and return the first document
288
+ in the ``restaurants`` collection in which the value of ``name`` is "Bagels N Buns":
289
+
293
290
.. io-code-block::
294
291
:copyable: true
295
292
0 commit comments