Skip to content

Commit 68b82b9

Browse files
authored
Minor typo and style guide fixes (#377)
* Minor typo and style guide fixes * Removed child document
1 parent 7418965 commit 68b82b9

File tree

13 files changed

+16
-15
lines changed

13 files changed

+16
-15
lines changed

source/faq.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ How Does Connection Pooling Work in the Java Driver?
8484

8585
Every ``MongoClient`` instance has a built-in connection pool for each server
8686
in your MongoDB topology. Connection pools open sockets on demand to
87-
support concurrent MongoDB operations in your multi-threaded application.
87+
support concurrent MongoDB operations in your multithreaded application.
8888

8989
The maximum size of each connection pool is set by the ``maxPoolSize`` option, which
9090
defaults to ``100``. If the number of in-use connections to a server reaches
@@ -179,7 +179,7 @@ What is a discriminator?
179179
A discriminator is a property that identifies a specific document
180180
schema. You can use it for inheritance and storing multiple types of
181181
documents within the same collection or parent document (if you embed
182-
sub-documents).
182+
subdocuments).
183183

184184
For example, if you have an ``Event`` class that you extend in Java (e.g.
185185
``MachineEvent`` or ``NetworkEvent``), using a discriminator identifies

source/fundamentals/builders.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Using the builders class, you leverage the power of:
4040

4141
When using builders, the Java compiler and the IDE catch errors such as misspelled
4242
operators early on. When using the MongoDB shell or plain Java, you
43-
write operators as strings and get no visual indication of a problem,
43+
write operators as strings and get no visual sign of a problem,
4444
pushing these errors to runtime instead of compile time
4545

4646
With the builder classes, you write operators as methods. The IDE
@@ -58,7 +58,7 @@ collection with the following criteria:
5858
- Users that identify as "female" gender
5959
- Users that are older than "29"
6060

61-
We only want their email address, so we'll ensure our query doesn't
61+
We only want their email address, so we want to ensure our query doesn't
6262
return data we pay bandwidth costs for but don't need.
6363

6464
Using the MongoDB Shell

source/fundamentals/builders/aggregates.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ options:
559559
:dedent:
560560

561561
The following example merges the pipeline into the ``customers`` collection in the
562-
``reporting`` database using some non-default options that specify to replace
562+
``reporting`` database using some options that specify to replace
563563
the document if both ``date`` and ``customerId`` match, otherwise insert the
564564
document:
565565

source/fundamentals/connection/mongoclientsettings.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ Example
278278
~~~~~~~
279279

280280
This example specifies for the driver to connect directly to a server,
281-
regardless of the type of MongoDB cluster its' a part of:
281+
regardless of the type of MongoDB cluster it's a part of:
282282

283283
.. literalinclude:: /includes/fundamentals/code-snippets/mcs.java
284284
:start-after: begin ClusterSettings

source/fundamentals/crud/read-operations/geo.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Overview
1616
In this guide, you can learn how to search **geospatial data** with the
1717
MongoDB Java Driver, and the different geospatial data formats supported by MongoDB.
1818

19-
Geospatial data is data that represents a geographical location on
19+
Geospatial data is data that represents a geographic location on
2020
the surface of the Earth. Examples of geospatial data include:
2121

2222
- Locations of movie theaters

source/fundamentals/data-formats/codecs.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ retrieved by the ``get()`` method to convert between Java and BSON data types.
201201

202202
However, in cases in which you add a class that contains fields that require
203203
corresponding ``Codec`` objects, you need to ensure that you instantiate the
204-
``Codec`` objects for the class' fields before you instantiate the
204+
``Codec`` objects for the class fields before you instantiate the
205205
``Codec`` for the class. You can use the ``CodecRegistry`` parameter in
206206
the ``get()`` method to pass any of the ``Codec`` instances that the
207207
``Codec`` relies on.

source/fundamentals/data-formats/document-data-format-pojo.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ requirements:
159159

160160
.. code-block:: java
161161

162-
// ensure you use the following static imports above your class definition
162+
// ensure you use the following static imports before your class definition
163163
import static com.mongodb.MongoClientSettings.getDefaultCodecRegistry;
164164
import static org.bson.codecs.configuration.CodecRegistries.fromProviders;
165165
import static org.bson.codecs.configuration.CodecRegistries.fromRegistries;

source/fundamentals/databases-collections.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Overview
1616
In this guide, you can learn how to use MongoDB databases and
1717
collections with the MongoDB Java driver.
1818

19-
MongoDB organizes data into a hierachy of the following levels:
19+
MongoDB organizes data into a hierarchy of the following levels:
2020

2121
- Databases
2222

source/fundamentals/indexes.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ The following is an example of a query that would be covered by the index create
230230

231231
.. common-content-begin
232232

233-
Multikey indexes behave differently from non-multikey indexes in terms of query coverage, index bound computation, and
233+
Multikey indexes behave differently from other indexes in terms of query coverage, index bound computation, and
234234
sort behavior. For a full explanation of multikey indexes, including a discussion of their behavior and limitations,
235235
refer to the :manual:`Multikey Indexes page </core/index-multikey>` in the MongoDB manual.
236236

source/includes/quick-start/atlas-setup.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ instructions on how to format your connection string.
3030

3131
To retrieve your connection string for the cluster and user you created in
3232
the previous step, log into your Atlas account and navigate to the
33-
:guilabel:`Database` section and click the :guilabel:`Connect` button for the cluster that you
33+
:guilabel:`Database` section and click :guilabel:`Connect` for the cluster that you
3434
want to connect to as shown below.
3535

3636
.. figure:: /includes/figures/atlas_connection_select_cluster.png

0 commit comments

Comments
 (0)