docs(singleton.rst): fix grammar and added more clarity in singleton documentation (#917)

This commit is contained in:
okot daniel 2025-08-12 21:49:53 +03:00
parent 1500a1de36
commit 8932db3928

View File

@ -33,8 +33,8 @@ factories:
- :ref:`factory-specialize-provided-type`
- :ref:`abstract-factory`
``Singleton`` provider scope is tied to the container. Two different containers will provider
two different singleton objects:
Since ``Singleton`` scope is container-specific, each container will create and manage its own ``Singleton`` instance.
Therefore, two containers will provide two distinct ``Singleton`` objects.
.. literalinclude:: ../../examples/providers/singleton_multiple_containers.py
:language: python