summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/tests.documentation.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/tests.documentation.rst b/docs/tests.documentation.rst
index f8af489..a0f34d8 100644
--- a/docs/tests.documentation.rst
+++ b/docs/tests.documentation.rst
@@ -573,7 +573,7 @@ that gives an idea of how you could manage permissions in a framework:
"Only the admin can delete objects"
-where `restricted` is a decorator factory defined as follows
+where ``restricted`` is a decorator factory defined as follows
.. code-block:: python
@@ -593,11 +593,11 @@ In general a decorator factory has a signature
.. code-block:: python
- def decfactory(func, param1=default1, .., paramN=defaultN, *args, **kw):
+ def decfactory(func, par1=default1, .., parN=defaultN, *a, **k):
...
-Each parameter must have a default, so that `decfactory` can work
-as an alias for `decfactory()`, i.e. the decorator in which are parameters
+Each parameter must have a default, so that ``decfactory`` can work
+as an alias for ``decfactory()``, i.e. the decorator in which all parameters
have the default value.
``decorator(cls)``