From 305f894c1f5667c6885623294c665eee48f03268 Mon Sep 17 00:00:00 2001 From: Pierre Grimaud Date: Tue, 25 May 2021 14:44:41 +0200 Subject: [PATCH] [7.x] Fix typos in documentation Co-authored-by: Seth Michael Larson --- docs/sphinx/connection.rst | 2 +- elasticsearch/connection_pool.py | 2 +- utils/generate-api.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/sphinx/connection.rst b/docs/sphinx/connection.rst index 3c6fe5da..71da4493 100644 --- a/docs/sphinx/connection.rst +++ b/docs/sphinx/connection.rst @@ -4,7 +4,7 @@ Connection Layer API ==================== All of the classes responsible for handling the connection to the Elasticsearch -cluster. The default subclasses used can be overriden by passing parameters to the +cluster. The default subclasses used can be overridden by passing parameters to the :class:`~elasticsearch.Elasticsearch` class. All of the arguments to the client will be passed on to :class:`~elasticsearch.Transport`, :class:`~elasticsearch.ConnectionPool` and :class:`~elasticsearch.Connection`. diff --git a/elasticsearch/connection_pool.py b/elasticsearch/connection_pool.py index 9b7a0429..43dc7d69 100644 --- a/elasticsearch/connection_pool.py +++ b/elasticsearch/connection_pool.py @@ -246,7 +246,7 @@ class ConnectionPool(object): instance. It tries to resurrect eligible connections, forces a resurrection when - no connections are availible and passes the list of live connections to + no connections are available and passes the list of live connections to the selector instance to choose from. Returns a connection instance and it's current fail count. diff --git a/utils/generate-api.py b/utils/generate-api.py index 41ae2568..82d725c1 100644 --- a/utils/generate-api.py +++ b/utils/generate-api.py @@ -158,7 +158,7 @@ class API: if isinstance(definition["documentation"], str): self.doc_url = definition["documentation"] else: - # set as attribute so it may be overriden by Module.add + # set as attribute so it may be overridden by Module.add self.description = ( definition["documentation"].get("description", "").strip() )