Skip to content

Commit 3460588

Browse files
committed
redoing feedback that got merged out
1 parent 589ec6c commit 3460588

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

source/databases-collection.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ Create a Collection
7474
-------------------
7575

7676
While the Ruby driver for MongoDB does not have a direct ``create_collection``
77-
method, you can use the ``database.command`` method with the create command to
78-
create a collection with specific options.
77+
method, you can use the ``create`` method to create a collection with
78+
specific options.
7979

8080
The following example creates a collection called example_collection with
8181
specific options:
@@ -220,8 +220,8 @@ Local Threshold
220220
~~~~~~~~~~~~~~~
221221

222222
If multiple replica set members match the read preference and tag sets you specify,
223-
{+driver-short+} reads from the nearest replica set members, chosen according to
224-
their ping time.
223+
{+driver-short+} reads from the nearest replica set members of sharded clusters,
224+
chosen according to their ping time.
225225

226226
By default, the driver uses only those members whose ping times are within 15 milliseconds
227227
of the nearest member for queries. To distribute reads between members with

source/includes/usage-examples/databases-collection.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# start-create-collection
2222
database = client.database
2323

24-
database.command(create: 'example_collection', capped: true, size: 1024)
24+
ddatabase[:example_collection].create(capped: true, size: 1024)
2525
# end-create-collection
2626

2727
# start-get-list

0 commit comments

Comments
 (0)