Skip to content

Commit

Permalink
docs: Fix list comprehension example
Browse files Browse the repository at this point in the history
  • Loading branch information
lindhe authored Aug 12, 2024
1 parent b490da6 commit e99ee6a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/jinja2/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -1629,8 +1629,8 @@ def sync_do_selectattr(
.. code-block:: python
(u for user in users if user.is_active)
(u for user in users if test_none(user.email))
(user for user in users if user.is_active)
(user for user in users if test_none(user.email))
.. versionadded:: 2.7
"""
Expand Down Expand Up @@ -1667,8 +1667,8 @@ def sync_do_rejectattr(
.. code-block:: python
(u for user in users if not user.is_active)
(u for user in users if not test_none(user.email))
(user for user in users if not user.is_active)
(user for user in users if not test_none(user.email))
.. versionadded:: 2.7
"""
Expand Down

0 comments on commit e99ee6a

Please sign in to comment.