Skip to content

Commit 8932db3

Browse files
committed
docs(singleton.rst): fix grammar and added more clarity in singleton documentation (#917)
1 parent 1500a1d commit 8932db3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/providers/singleton.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ factories:
3333
- :ref:`factory-specialize-provided-type`
3434
- :ref:`abstract-factory`
3535

36-
``Singleton`` provider scope is tied to the container. Two different containers will provider
37-
two different singleton objects:
36+
Since ``Singleton`` scope is container-specific, each container will create and manage its own ``Singleton`` instance.
37+
Therefore, two containers will provide two distinct ``Singleton`` objects.
3838

3939
.. literalinclude:: ../../examples/providers/singleton_multiple_containers.py
4040
:language: python

0 commit comments

Comments
 (0)