Skip to content

Commit c55f148

Browse files
committed
last internal comments
1 parent 5844064 commit c55f148

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

source/connect/csot.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Limit Server Execution Time
1515
:values: reference
1616

1717
.. meta::
18-
:keywords: error, blocking, thread, task, code examples
18+
:keywords: error, blocking, thread, task, code example
1919

2020
Overview
2121
--------
@@ -30,12 +30,12 @@ steps needed to complete the operation, including server selection, connection
3030
checkout, and server-side execution. If the timeout expires before the operation
3131
completes, the {+driver-short+} raises a timeout exception.
3232

33-
``timeout_ms`` Option
34-
---------------------
33+
timeout_ms Option
34+
-----------------
3535

3636
To specify a timeout when connecting to a MongoDB deployment, set the
3737
``timeout_ms`` connection option to the timeout length in milliseconds. You can
38-
specify a timeout value in two ways:
38+
specify a timeout value in the following ways:
3939

4040
- Pass the ``timeout_ms`` client option to the ``Mongo::Client`` constructor.
4141
- Pass the ``timeoutMS`` connection string option as a parameter to your connection string.
@@ -222,8 +222,8 @@ This is the default mode for all tailable cursors,
222222
such as the tailable cursors returned by the ``find`` method on capped
223223
collections or change streams.
224224

225-
The following code example iterates over documents in a movie collection
226-
by using an iterable cursor, and then fetches and logs the ``imdb`` information for
225+
The following code example iterates over documents in a sample collection
226+
by using an iterable cursor, and then fetches and logs the ``title`` information for
227227
each movie document:
228228

229229
.. literalinclude:: /includes/connect/csot.rb

source/includes/connect/csot.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
cursor = collection.find()
2727

2828
cursor.each do |movie|
29-
puts movie['imdb']
29+
puts movie['title']
3030
end
3131
# end-csot-iterable

0 commit comments

Comments
 (0)