Skip to content

Commit 5fd439f

Browse files
committed
Fixes
1 parent aab1adb commit 5fd439f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

source/connect/compression.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Compression
1717
Overview
1818
--------
1919

20-
In this guide, you can learn how to use supported compression algorithms with
20+
In this guide, you can learn how to use compression algorithms with
2121
{+driver-short+}.
2222

2323
You can use compression to reduce the size of messages sent between your application
@@ -51,15 +51,16 @@ show in the following example:
5151
Specifying Compression to a MongoClient
5252
---------------------------------------
5353

54-
You can also specify the compression algorithm to use when creating a ``MongoClient`` object,
55-
as shown in the following example:
54+
You can also specify the compression algorithm to use by passing the algorithms to use
55+
to the ``compressors`` parameter of the ``MongoClient`` constructor, as shown in the
56+
following example:
5657

5758
.. code-block:: python
5859

5960
client = pymongo.MongoClient(compressors="snappy")
6061

6162
You can also specify multiple compression algorithms by passing a list of algorithms to the
62-
``MongoClient`` constructors, as shown in the following example:
63+
``MongoClient`` constructor, as shown in the following example:
6364

6465
.. code-block:: python
6566

0 commit comments

Comments
 (0)