Skip to content

Commit 9d707dc

Browse files
committed
Further feedback
1 parent d8e638c commit 9d707dc

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

source/builders.txt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Overview
2525
This page describes how to implement the builders pattern in your code and describes
2626
benefits of using builder classes.
2727

28-
The {+driver-short+} provides type-safe builders classes and methods that enable developers to
28+
The {+driver-short+} provides type-safe builder classes and methods that enable developers to
2929
efficiently build queries and aggregations. To learn more about the builders pattern,
3030
see `Type-safe builders <https://kotlinlang.org/docs/type-safe-builders.html>`__ in the
3131
{+language+} documentation.
@@ -34,10 +34,8 @@ Why Use the Builders Code Pattern?
3434
----------------------------------
3535

3636
If you use only plain {+language+} to construct BSON query documents, you are not
37-
able to identify errors in your code until runtime.
38-
39-
When you use builder classes, you can write operators as methods and any syntax errors
40-
will be caught at compile time.
37+
able to identify errors in your code until runtime. When you use builder classes, you can
38+
write operators as methods and any syntax errors will be caught at compile time.
4139

4240
Example
4341
-------
@@ -73,7 +71,10 @@ The following sample performs the query by using the MongoDB Query API:
7371

7472
.. code-block:: js
7573

76-
collection.find({ "gender": "female", "age" : { "$gt": 29 }}, { "_id": 0, "email": 1 })
74+
collection.find(
75+
{ "gender": "female", "age" : { "$gt": 29 }},
76+
{ "_id": 0, "email": 1 }
77+
)
7778

7879
Document Class Filter
7980
~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)