Skip to content

Commit 4d21d92

Browse files
committed
Fix IndexesPrimer.java index order
DOCS-5753
1 parent 141c503 commit 4d21d92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver/src/examples/primer/IndexesPrimer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public void singleFieldIndex() {
4141
public void createCompoundIndex() {
4242
// @begin: create-compound-index
4343
// @code: start
44-
db.getCollection("restaurants").createIndex(new Document("cuisine", 1).append("address.zipcode", 1));
44+
db.getCollection("restaurants").createIndex(new Document("cuisine", 1).append("address.zipcode", -1));
4545
// @code: end
4646

4747
// @post: The method does not return a result.

0 commit comments

Comments
 (0)