summaryrefslogtreecommitdiff
path: root/pygments/sphinxext.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/sphinxext.py')
-rw-r--r--pygments/sphinxext.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/sphinxext.py b/pygments/sphinxext.py
index 82bc6543..85a434ad 100644
--- a/pygments/sphinxext.py
+++ b/pygments/sphinxext.py
@@ -133,8 +133,8 @@ class PygmentsDoc(Directive):
if isinstance(docstring, bytes):
docstring = docstring.decode('utf8')
heading = cls.__name__
- out.append(FMTERDOC % (heading, ', '.join(data[1]) or 'None',
- ', '.join(data[2]).replace('*', '\\*') or 'None',
+ out.append(FMTERDOC % (heading, ', '.join(data[2]) or 'None',
+ ', '.join(data[3]).replace('*', '\\*') or 'None',
docstring))
return ''.join(out)