diff --git a/docs/scopes.rst b/docs/scopes.rst index 0a523fd..ecd46a8 100644 --- a/docs/scopes.rst +++ b/docs/scopes.rst @@ -49,11 +49,11 @@ This can be used like so:: class MyClass: pass -Scopes are bound in modules with the :meth:`Binder.bind_scope` method:: +Scopes are bound in modules with the :meth:`Binder.install` method:: class MyModule(Module): def configure(self, binder): - binder.bind_scope(CustomScope) + binder.install(CustomScope) Scopes can be retrieved from the injector, as with any other instance. They are singletons across the life of the injector::