Skip to content

Commit a98ea61

Browse files
committed
Correct API documentation for updateMany
JAVA-1907
1 parent 9faf66a commit a98ea61

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

driver-async/src/main/com/mongodb/async/client/MongoCollection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ void bulkWrite(List<? extends WriteModel<? extends TDocument>> requests, BulkWri
371371
void updateOne(Bson filter, Bson update, UpdateOptions options, SingleResultCallback<UpdateResult> callback);
372372

373373
/**
374-
* Update a single document in the collection according to the specified arguments.
374+
* Update all documents in the collection according to the specified arguments.
375375
*
376376
* @param filter a document describing the query filter, which may not be null.
377377
* @param update a document describing the update, which may not be null. The update to apply must include only update operators. T
@@ -385,7 +385,7 @@ void bulkWrite(List<? extends WriteModel<? extends TDocument>> requests, BulkWri
385385
void updateMany(Bson filter, Bson update, SingleResultCallback<UpdateResult> callback);
386386

387387
/**
388-
* Update a single document in the collection according to the specified arguments.
388+
* Update all documents in the collection according to the specified arguments.
389389
*
390390
* @param filter a document describing the query filter, which may not be null.
391391
* @param update a document describing the update, which may not be null. The update to apply must include only update operators.

driver/src/main/com/mongodb/client/MongoCollection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ public interface MongoCollection<TDocument> {
368368
UpdateResult updateOne(Bson filter, Bson update, UpdateOptions updateOptions);
369369

370370
/**
371-
* Update a single document in the collection according to the specified arguments.
371+
* Update all documents in the collection according to the specified arguments.
372372
*
373373
* @param filter a document describing the query filter, which may not be null.
374374
* @param update a document describing the update, which may not be null. The update to apply must include only update operators.
@@ -382,7 +382,7 @@ public interface MongoCollection<TDocument> {
382382
UpdateResult updateMany(Bson filter, Bson update);
383383

384384
/**
385-
* Update a single document in the collection according to the specified arguments.
385+
* Update all documents in the collection according to the specified arguments.
386386
*
387387
* @param filter a document describing the query filter, which may not be null.
388388
* @param update a document describing the update, which may not be null. The update to apply must include only update operators.

0 commit comments

Comments
 (0)