Skip to content

Commit

Permalink
styles gallery: Make docstring in example follow PEP 257
Browse files Browse the repository at this point in the history
The example is displayed multiple times at https://pygments.org/styles/.
Code displayed on the Pygments website should follow best practices,
such as https://peps.python.org/pep-0257/.
  • Loading branch information
not-my-profile committed Dec 30, 2022
1 parent b710ccf commit 61fd608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/examples/example.py
Expand Up @@ -4,7 +4,7 @@
class Math:
@staticmethod
def fib(n: int) -> Iterator[int]:
""" Fibonacci series up to n """
"""Fibonacci series up to n."""
a, b = 0, 1
while a < n:
yield a
Expand Down

0 comments on commit 61fd608

Please sign in to comment.