Skip to content

Commit e694d7f

Browse files
Fix typo in docs
maxcolwidth → maxcolwidths maxheadercolwidth → maxheadercolwidths
1 parent 74885be commit e694d7f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tabulate/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2214,8 +2214,8 @@ def tabulate(
22142214
Tabulate will, by default, set the width of each column to the length of the
22152215
longest element in that column. However, in situations where fields are expected
22162216
to reasonably be too long to look good as a single line, tabulate can help automate
2217-
word wrapping long fields for you. Use the parameter `maxcolwidth` to provide a
2218-
list of maximal column widths
2217+
word wrapping long fields for you. Use the parameter `maxcolwidths` to provide a
2218+
list of maximal column widths:
22192219
22202220
>>> print(tabulate( \
22212221
[('1', 'John Smith', \
@@ -2232,7 +2232,7 @@ def tabulate(
22322232
| | | better if it is wrapped a bit |
22332233
+------------+------------+-------------------------------+
22342234
2235-
Header column width can be specified in a similar way using `maxheadercolwidth`
2235+
Header column width can be specified in a similar way using `maxheadercolwidths`.
22362236
22372237
"""
22382238

0 commit comments

Comments
 (0)