Skip to content

Commit 95cc176

Browse files
committed
Make @singleton its own section.
1 parent dc50c7b commit 95cc176

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.rst

+5-1
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,10 @@ allow the instance to update if given new parameters.
390390
c3.x # 3
391391
assert c1 is c2 is c3 # Okay
392392
393+
394+
@singleton
395+
~~~~~~~~~~
396+
393397
Additionally, there is a decorator, `@singleton` that can be used make a class
394398
a singleton, even if it already uses another metaclass. This is convenient for
395399
creating singleton Objects.
@@ -410,7 +414,7 @@ creating singleton Objects.
410414
@metaclass
411415
~~~~~~~~~~
412416

413-
Type[T] contains a class decorator, `metaclass`, that will create a derivative
417+
Type[T] contains a class decorator, `@metaclass`, that will create a derivative
414418
metaclass from the given metaclasses and the metaclass used by the decorated
415419
class and recreate the class with the derived metaclass.
416420

0 commit comments

Comments
 (0)