Skip to content

Commit

Permalink
Updated docs [skip CI]
Browse files Browse the repository at this point in the history
  • Loading branch information
micheles committed Apr 15, 2018
1 parent 3574ba0 commit 19a06ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions docs/tests.documentation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)``
Expand Down
8 changes: 4 additions & 4 deletions src/tests/documentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,19 +437,19 @@ def caller(f, param1=default1, param2=default2, ..., *args, **kw):
$$Action
where `restricted` is a decorator factory defined as follows
where ``restricted`` is a decorator factory defined as follows
$$restricted
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)``
Expand Down

0 comments on commit 19a06ef

Please sign in to comment.