@@ -242,58 +242,24 @@ Count Documents Example: Full File
242242
243243.. include:: /includes/usage-examples/example-intro.rst
244244
245- The following example performs the following on the ``restaurants``
246- collection:
245+ This example performs the following on the ``restaurants`` collection:
247246
248247- Approximates the number of documents in the collection
249- - Counts the number of documents in which the value of the ``cuisine`` is "American"
248+ - Counts the number of documents in which the value of the ``cuisine`` field is `` "American"``
250249
251- Select the :guilabel:`Struct` or :guilabel:`bson.D` tab to see the corresponding code:
252-
253- .. tabs::
254-
255- .. tab :: Struct
256- :tabid: structExample
257-
258- The following code uses structs to approximate the number of documents in
259- the collection and count the number of documents in which the value of the
260- ``cuisine`` is "American":
261-
262- .. io-code-block::
263- :copyable: true
264-
265- .. input:: /includes/usage-examples/code-snippets/count.go
266- :language: go
267- :dedent:
268-
269- .. output::
270- :language: none
271- :visible: false
272-
273- Estimated number of documents in the restaurants collection: 25359
274- Number of restaurants with American cuisine: 6183
275-
276- .. tab :: bson.D
277- :tabid: bsonDExample
278-
279- The following code uses a bson.D type to approximate the number of documents in
280- the collection and count the number of documents in which the value of the
281- ``cuisine`` is "American":
282-
283- .. io-code-block::
284- :copyable: true
285-
286- .. input:: /includes/usage-examples/code-snippets/countBsonD.go
287- :language: go
288- :dedent:
250+ .. io-code-block::
251+ :copyable: true
289252
290- .. output::
291- :language: none
292- :visible: false
253+ .. input:: /includes/usage-examples/code-snippets/count.go
254+ :language: go
255+ :dedent:
293256
294- Estimated number of documents in the restaurants collection: 25359
295- Number of restaurants with American cuisine: 6183
257+ .. output::
258+ :language: none
259+ :visible: false
296260
261+ Estimated number of documents in the restaurants collection: 25359
262+ Number of restaurants with American cuisine: 6183
297263
298264Additional Information
299265----------------------
0 commit comments