Skip to content

Commit d3c6811

Browse files
author
Chris Cho
committed
PR review fixes
1 parent d14a4b5 commit d3c6811

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

source/fundamentals/collations.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,8 @@ format:
8484

8585
"<locale code>@collation=<variant code>"
8686

87-
Specify a valid locale in the ``locale code`` placeholder and optionally a
88-
variant in the ``variant code`` placeholder. The following example specifies
89-
the "de" locale code and "phonebook" variant code:
87+
The following example specifies the "de" locale code and "phonebook" variant
88+
code:
9089

9190
.. code-block:: none
9291
:copyable: false

source/includes/fundamentals/code-snippets/CollationCollectionExample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,12 +193,12 @@ private static void operationCollation(MongoCollection collection) {
193193

194194
public static void main(String[] args) {
195195

196-
String uri = "mongodb://localhost:27017";
196+
String uri = "<MongoDB connection URI>";
197197

198198
try (MongoClient mongoClient = MongoClients.create(uri)) {
199199

200200
MongoDatabase database = mongoClient.getDatabase("fundamentals_example");
201-
// MongoCollection<Document> collection = database.getCollection("phonebook");
201+
// MongoCollection<Document> collection = database.getCollection("phonebook");
202202

203203
}
204204
}

0 commit comments

Comments
 (0)