Skip to content

Fixed Typos in Docs #414

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 18, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions docs/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ follows:

1. A :class:`pymemcache.client.hash.HashClient` is created with 3 nodes,
``node1``, ``node2`` and ``node3``.
2. A number of values is set in the client using ``set`` and ``set_many``.
2. A number of values are set in the client using ``set`` and ``set_many``.
Example:

- ``key1`` -> ``node2``
Expand Down Expand Up @@ -120,13 +120,13 @@ follows:

Using the built-in retrying mechanism
-------------------------------------
The library comes with retry mechanisms that can be used to wrap all kind of
pymemcache clients. The wrapper allow you to define the exceptions that you want
The library comes with retry mechanisms that can be used to wrap all kinds of
pymemcache clients. The wrapper allows you to define the exceptions that you want
to handle with retries, which exceptions to exclude, how many attempts to make
and how long to wait between attempts.

The ``RetryingClient`` wraps around any of the other included clients and will
have the same methods. For this example we're just using the base ``Client``.
have the same methods. For this example, we're just using the base ``Client``.

.. code-block:: python

Expand Down Expand Up @@ -250,7 +250,7 @@ For testing purpose pymemcache can be used in an interactive mode by using
the python interpreter or again ipython and tools like tox.

One main advantage of using `tox` to interact with `pymemcache` is that it
comes with it's own virtual environments. It will automatically install
comes with its own virtual environments. It will automatically install
pymemcache and fetch all the needed requirements at run. See the example below:

.. code-block::
Expand All @@ -274,8 +274,8 @@ pymemcache and fetch all the needed requirements at run. See the example below:
You can instantiate all the classes and clients offered by pymemcache.

Your client will remain open until you decide to close it or until you decide
to quit your interpreter. It can allow you to see what's happen if your server
is abruptly closed. Below is an by example.
to quit your interpreter. It can allow you to see what happens if your server
is abruptly closed. Below is a by-example.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of curiosity can you point me to the grammar guideline for the dash in 'by-example' I haven't personally seen that one before.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, sorry! There shouldn't have been '-' but 'by example' instead or 'an example' as suggested by @jparise below.


Starting your server:

Expand All @@ -299,7 +299,7 @@ Restarting the server:

$ podman restart memcached

The previous client is still opened, now try to retrieve some keys:
The previous client is still open, now try to retrieve some keys:

.. code-block:: shell

Expand Down