Skip to content

Commit ea868c6

Browse files
committed
Fix Sorts#descending documentation
JAVA-3366
1 parent 3681689 commit ea868c6

File tree

1 file changed

+2
-2
lines changed
  • driver-core/src/main/com/mongodb/client/model

1 file changed

+2
-2
lines changed

driver-core/src/main/com/mongodb/client/model/Sorts.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public static Bson ascending(final List<String> fieldNames) {
6767
}
6868

6969
/**
70-
* Create a sort specification for an ascending sort on the given fields.
70+
* Create a sort specification for a descending sort on the given fields.
7171
*
7272
* @param fieldNames the field names, which must contain at least one
7373
* @return the sort specification
@@ -78,7 +78,7 @@ public static Bson descending(final String... fieldNames) {
7878
}
7979

8080
/**
81-
* Create a sort specification for an ascending sort on the given fields.
81+
* Create a sort specification for a descending sort on the given fields.
8282
*
8383
* @param fieldNames the field names, which must contain at least one
8484
* @return the sort specification

0 commit comments

Comments
 (0)