Skip to content

Commit 48e9326

Browse files
committed
remove comments from code snippets
1 parent f5abd5f commit 48e9326

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/includes/indexes/multikey.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
collection = database[:movies]
1515
# end-sample-data
1616

17-
# start-index-multikey
1817
# Creates an index on the "cast" field
18+
# start-index-multikey
1919
collection.indexes.create_one({ cast: 1 })
2020
# end-index-multikey
2121

22-
# start-index-multikey-query
2322
# Finds a document with the specified cast members by using the newly created index
23+
# start-index-multikey-query
2424
filter = { cast: { '$all' => ['Aamir Khan', 'Kajol'] } }
2525
doc = collection.find(filter).first
2626

@@ -31,7 +31,7 @@
3131
end
3232
# end-index-multikey-query
3333

34-
# start-check-multikey-index
3534
# Lists all indexes on the collection
35+
# start-check-multikey-index
3636
puts collection.indexes.collect(&:to_json)
3737
# end-check-multikey-index

0 commit comments

Comments
 (0)