Fix a few typos

This commit is contained in:
Roman Mogylatov 2020-09-09 22:23:14 -04:00
parent 5740dd6df5
commit 505ccf5a1d
4 changed files with 5 additions and 5 deletions

View File

@ -143,7 +143,7 @@ Here comes the ``Dependency Injector``.
What does the Dependency Injector do?
-------------------------------------
With the dependency injection pattern objects lose the responsibility of assembling the
With the dependency injection pattern objects loose the responsibility of assembling the
dependencies. The ``Dependency Injector`` absorbs that responsibility.
``Dependency Injector`` helps to assemble the objects.

View File

@ -123,7 +123,7 @@ Here comes the ``Dependency Injector``.
What does the Dependency Injector do?
-------------------------------------
With the dependency injection pattern objects lose the responsibility of assembling the
With the dependency injection pattern objects loose the responsibility of assembling the
dependencies. The ``Dependency Injector`` absorbs that responsibility.
``Dependency Injector`` helps to assemble the objects.
@ -178,7 +178,7 @@ client with a mock:
with container.api_client.override(mock.Mock()):
service = container.service()
You can override any provider by another provider.
You can override any provider with another provider.
It also helps you in configuring project for the different environments: replace an API client
with a stub on the dev or stage.

View File

@ -24,7 +24,7 @@ It causes the cascade effect that helps to assemble object graphs. See ``Factory
└──> provider6()
Another providers feature is an overriding. You can override any provider by another provider.
Another providers feature is an overriding. You can override any provider with another provider.
This helps in testing. This also helps in overriding API clients with stubs for the development
or staging environment. See the example at :ref:`provider-overriding`.

View File

@ -10,7 +10,7 @@ Provider overriding
.. currentmodule:: dependency_injector.providers
You can override any provider by another provider.
You can override any provider with another provider.
When provider is overridden it calls to the overriding provider instead of providing
the object by its own.