summaryrefslogtreecommitdiff
path: root/doc/examples/example.py
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2022-12-30 10:31:01 +0100
committerMartin Fischer <martin@push-f.com>2022-12-30 10:35:14 +0100
commit61fd608b92b181bfc540ec160e125b506c7a33c9 (patch)
treeaf4ddf2a9d02fc2eececa70b56e1caf3107e5711 /doc/examples/example.py
parentb710ccfcbed1dcfaada410c27a5fa147457b6ee0 (diff)
downloadpygments-git-61fd608b92b181bfc540ec160e125b506c7a33c9.tar.gz
styles gallery: Make docstring in example follow PEP 257
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/.
Diffstat (limited to 'doc/examples/example.py')
-rw-r--r--doc/examples/example.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/example.py b/doc/examples/example.py
index ae5293af..6c9e2f14 100644
--- a/doc/examples/example.py
+++ b/doc/examples/example.py
@@ -4,7 +4,7 @@ from typing import Iterator
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