From ef41688e618839ddd59713a6de8c019c4a0f5388 Mon Sep 17 00:00:00 2001 From: Roman Mogilatov Date: Thu, 18 Jun 2015 14:45:26 +0300 Subject: [PATCH] Minor fixes in singleton docs --- docs/providers/singleton.rst | 3 +-- examples/providers/singleton_reseting.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/providers/singleton.rst b/docs/providers/singleton.rst index 4c26b09b..1865cbb9 100644 --- a/docs/providers/singleton.rst +++ b/docs/providers/singleton.rst @@ -73,8 +73,7 @@ lifecycle of memorized instance is out of ``Singleton`` provider's control. """Example class UserService.""" - # Singleton provider creates new instance of specified class on first call and - # returns same instance on every next call. + # Users service singleton provider: users_service_provider = Singleton(UserService) # Retrieving several UserService objects: diff --git a/examples/providers/singleton_reseting.py b/examples/providers/singleton_reseting.py index efe2bd88..a35fc6a8 100644 --- a/examples/providers/singleton_reseting.py +++ b/examples/providers/singleton_reseting.py @@ -8,8 +8,7 @@ class UserService(object): """Example class UserService.""" -# Singleton provider creates new instance of specified class on first call and -# returns same instance on every next call. +# Users service singleton provider: users_service_provider = Singleton(UserService) # Retrieving several UserService objects: