File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
includes/fundamentals/code-snippets Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments