Skip to content

Commit 84ea79e

Browse files
DOCSP-18445 results sections (#43)
* updated all results sections
1 parent e90ceaf commit 84ea79e

15 files changed

+47
-35
lines changed

source/usage-examples/bulkWrite.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ Click `here <{+example+}/bulk.go>`__ to see a fully runnable example.
2727
Expected Result
2828
---------------
2929

30-
After you run the preceding code snippet, you should be able to find the
31-
document in the ``haikus`` collection:
30+
After you run the preceding example, you can find the following document
31+
in the ``haikus`` collection:
3232

3333
.. code-block:: json
3434
:copyable: false
@@ -40,7 +40,7 @@ document in the ``haikus`` collection:
4040
}
4141

4242
For an example on how to find a document, see our :doc:`Find
43-
One Usage Example </usage-examples/findOne>`.
43+
a Document Usage Example </usage-examples/findOne>`.
4444

4545
Additional Information
4646
----------------------

source/usage-examples/command.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ Click `here <{+example+}/command.go>`__ to see a fully runnable example.
2525
Expected Result
2626
---------------
2727

28-
The example returns a ``SingleResult`` type that contains the following
29-
values:
28+
After you run the preceding example, it returns a ``SingleResult`` type
29+
that contains the following values:
3030

3131
.. code-block:: json
3232

source/usage-examples/count.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ Click `here <{+example+}/count.go>`__ to see a fully runnable example.
2929
Expected Result
3030
---------------
3131

32-
After running the preceding code snippet, you should see the following:
32+
After you run the preceding example, you should see the following:
3333

3434
- There are about ``23541`` documents in the ``movies`` collection
35-
- There are ``303`` documents in the ``movies`` collection from "China"
35+
- There are ``303`` documents in the ``movies`` collection that contain "China" in the ``countries`` field
3636

3737
.. note::
3838

source/usage-examples/deleteMany.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ Click here <TODO> to see a fully runnable example.
2626
Expected Result
2727
---------------
2828

29-
After running the preceding code snippet, you should not be able to find
30-
the following documents in the ``movies`` collection:
29+
After you run the preceding example, it removes the following documents
30+
in the ``movies`` collection:
3131

3232
.. code-block:: json
3333
:copyable: false
@@ -39,7 +39,7 @@ the following documents in the ``movies`` collection:
3939
{ "_id": ObjectId("573a13a6f29313caabd18ae0"), ... , "runtime": 877, ... }
4040

4141
For an example on how to find multiple documents, see our :doc:`Find
42-
Usage Example </usage-examples/find>`.
42+
Multiple Documents Usage Example </usage-examples/find>`.
4343

4444
Additional Information
4545
----------------------

source/usage-examples/deleteOne.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ Click here <TODO> to see a fully runnable example.
2626
Expected Result
2727
---------------
2828

29-
After running the preceding code snippet, you should not be able to find
30-
the following document in the ``movies`` collection:
29+
After you run the preceding example, it removes the following document
30+
in the ``movies`` collection:
3131

3232
.. code-block:: json
3333
:copyable: false
@@ -36,7 +36,7 @@ the following document in the ``movies`` collection:
3636
{ "_id": ObjectId("573a13bff29313caabd5e06b"), ..., "title": "Twilight", ... }
3737

3838
For an example on how to find a document, see our :doc:`Find
39-
One Usage Example </usage-examples/findOne>`.
39+
a Document Usage Example </usage-examples/findOne>`.
4040

4141
Additional Information
4242
----------------------

source/usage-examples/distinct.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ Click `here <{+example+}/distinct.go>`__ to see a fully runnable example.
2626
Expected Result
2727
---------------
2828

29-
The example returns an empty slice of an ``interface`` type that
30-
contains the following values:
29+
After you run the preceding example, it returns an empty slice of an
30+
``interface`` type that contains the following values:
3131

3232
.. code-block:: none
3333
:copyable: false

source/usage-examples/find.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ Click `here <{+example+}/find.go>`__ to see a fully runnable example.
2525
Expected Result
2626
---------------
2727

28-
This example creates a ``Cursor`` object that returns
29-
documents similar to these:
28+
After you run the preceding example, it creates a ``Cursor`` object that
29+
returns the following documents:
3030

3131
.. code-block:: json
3232
:copyable: false

source/usage-examples/findOne.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ Click `here <{+example+}/findOne.go>`__ to see a fully runnable example.
2525
Expected Result
2626
---------------
2727

28-
After you run the code example, you should see output similar to:
28+
After you run the preceding example, it returns a ``SingleResult``
29+
object that contains the following document:
2930

3031
.. code-block:: json
3132
:copyable: False

source/usage-examples/insertMany.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ Click `here <{+example+}/insertMany.go>`__ to see a fully runnable example.
3030
Expected Result
3131
---------------
3232

33-
After you run the code example, two new documents will be present in the
34-
collection with an ``_id`` field that matches the previous output:
33+
After you run the preceding example, you can find the following inserted
34+
documents in the ``haikus`` collection:
3535

3636
.. code-block:: json
3737
:copyable: false
@@ -47,6 +47,9 @@ collection with an ``_id`` field that matches the previous output:
4747
"text": "Binary data, safely stored with GridFS. Bucket the data"
4848
}
4949

50+
For an example on how to find multiple documents, see our :doc:`Find
51+
Multiple Documents Usage Example </usage-examples/find>`.
52+
5053
Additional Information
5154
----------------------
5255

source/usage-examples/insertOne.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ Click `here <{+example+}/insertOne.go>`__ to see a fully runnable example.
3030
Expected Result
3131
---------------
3232

33-
After you run the code example, a new document will be present in the
34-
collection with an ``_id`` field that matches the previous output:
33+
After you run the preceding example, you can find the following inserted
34+
document in the ``haikus`` collection:
3535

3636
.. code-block:: json
3737
:copyable: false
@@ -42,6 +42,9 @@ collection with an ``_id`` field that matches the previous output:
4242
"text": "No bytes, no problem. Inserting a document. In MongoDB"
4343
}
4444

45+
For an example on how to find a document, see our :doc:`Find
46+
a Document Usage Example </usage-examples/findOne>`.
47+
4548
Additional Information
4649
----------------------
4750

0 commit comments

Comments
 (0)