Skip to content

Commit

Permalink
docs: fix formatting of MAX_SIZED_OUTPUT params
Browse files Browse the repository at this point in the history
  • Loading branch information
jgriffiths committed Nov 20, 2023
1 parent 6f67467 commit 8db78e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def preprocess_output_doc_line(l):
len_param, param, size = parts
text = ':param {}: Size of ``{}``. Must be `{}`.'.format(len_param, param, size)
elif 'MAX_SIZED_OUTPUT(' in l:
parts = [p.strip() for p in l[len('FIXED_SIZED_OUTPUT('):-1].split(',')]
parts = [p.strip() for p in l[len('MAX_SIZED_OUTPUT('):-1].split(',')]
len_param, param, max_size = parts
text = ':param {}: Size of ``{}``. Passing `{}` will ensure the buffer is large enough.'.format(len_param, param, max_size)
return '* ' + l if l else None, text
Expand Down

0 comments on commit 8db78e7

Please sign in to comment.