@@ -121,7 +121,7 @@ Retrieve All Documents
121121To retrieve all documents from a cursor, convert the cursor into an array by using
122122the ``to_a`` method on its corresponding ``Mongo::Collection::View`` object.
123123
124- The following example calls the ``to_a`` to store the cursor results
124+ The following example calls the ``to_a`` method to store the cursor results
125125in an array:
126126
127127.. literalinclude:: /includes/read/cursors.rb
@@ -140,17 +140,19 @@ can use a **tailable cursor** that remains open after the client exhausts the
140140results in a cursor. To create a tailable cursor, pass the ``cursor_type`` option to
141141the ``find`` method. Set this option to ``:tailable``.
142142
143- For example, you can create a capped collection called ``vegetables`` that stores
144- documents representing vegetables, as shown in the following code:
143+ For example, you can create a capped collection called ``vegetables``, as
144+ shown in the following code:
145145
146146.. literalinclude:: /includes/read/cursors.rb
147147 :language: ruby
148148 :dedent:
149149 :start-after: start-capped-coll
150150 :end-before: end-capped-coll
151151
152- The following code uses a tailable cursor to retrieve all documents in the ``vegetables``
153- collection. After the cursor is exhausted, it remains open until retrieving three documents:
152+ Then, you can use the following code to retrieve all documents
153+ in the ``vegetables`` collection and store the results in a tailable
154+ cursor. After the cursor is exhausted, it remains open until
155+ retrieving three documents:
154156
155157.. io-code-block::
156158 :copyable:
0 commit comments