Skip to content

Commit 724bc7c

Browse files
committed
edits
1 parent c9dc3c3 commit 724bc7c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/includes/read/count.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
# Estimates the number of documents in the collection and sets a time limit on the operation
4141
# start-modify-estimate
42-
result = collection.estimated_document_count(max_time: 1)
42+
result = collection.estimated_document_count(max_time_ms: 1000)
4343
puts "Estimated number of documents: #{result}"
4444
# end-modify-estimate
4545
end

source/read/count.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ estimate of the number of documents in the collection and sets a timeout of
248248
API Documentation
249249
-----------------
250250

251-
To learn more about any of the methods or types discussed in this
251+
To learn more about any of the methods discussed in this
252252
guide, see the following API documentation:
253253

254254
- `count_documents <{+api-root+}/Mongo/Collection.html#count_documents-instance_method>`__

0 commit comments

Comments
 (0)