Minor fixes in singleton docs

This commit is contained in:
Roman Mogilatov 2015-06-18 14:45:26 +03:00
parent 7f439137d6
commit ef41688e61
2 changed files with 2 additions and 4 deletions

View File

@ -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:

View File

@ -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: