Skip to content

Commit

Permalink
Minor fix in example in README
Browse files Browse the repository at this point in the history
  • Loading branch information
dfunckt committed Feb 16, 2015
1 parent d5657c4 commit dc8b561
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -496,13 +496,12 @@ sugar. As a matter of fact, the following two are equivalent:
Skipping predicates
-------------------

You may skip evaluation of a predicate by calling the ``skip()`` method of
your predicate:
You may skip evaluation by calling the ``skip()`` method of your predicate:

.. code:: python
>>> @predicate(bind=True)
... def is_book_author(user, book):
... def is_book_author(self, user, book):
... if self.context.args:
... return user == book.author
... else:
Expand Down

0 comments on commit dc8b561

Please sign in to comment.