Skip to content

Commit d5bfde9

Browse files
committed
DOCS-853 use the ~ expression
1 parent acad309 commit d5bfde9

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

source/reference/method/cursor.toArray.txt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,15 @@ cursor.toArray()
66

77
.. method:: cursor.toArray()
88

9-
The :method:`toArray() <cursor.toArray()>` method returns an array
10-
that contains all the documents from a cursor. The method iterates
9+
The :method:`~cursor.toArray()` method returns an array that
10+
contains all the documents from a cursor. The method iterates
1111
completely the cursor, loading all the documents into RAM and
1212
exhausting the cursor.
1313

1414
:returns: An array of documents.
1515

16-
Consider the following example that applies :method:`toArray()
17-
<cursor.toArray()>` to the cursor returned from the :method:`find()
18-
<db.collection.find()>` method:
16+
Consider the following example that applies :method:`~cursor.toArray()`
17+
to the cursor returned from the :method:`~db.collection.find()` method:
1918

2019
.. code-block:: javascript
2120

@@ -24,4 +23,4 @@ Consider the following example that applies :method:`toArray()
2423
if (allProductsArray.length > 0) { printjson (allProductsArray[0]); }
2524

2625
The variable ``allProductsArray`` holds the array of documents returned by
27-
:method:`toArray() <cursor.toArray()>`.
26+
:method:`~cursor.toArray()`.

0 commit comments

Comments
 (0)