Skip to content

Commit 9a7b30e

Browse files
docs/functions.rst: fixed typo in example code.
1 parent 340132b commit 9a7b30e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/functions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ Yet others are handy, general-purpose utilities.
763763
try:
764764
return sum([widthlist[ord(c)] for c in text]) * fontsize
765765
except IndexError:
766-
raise ValueError:("max. code point found: %i, increase limit" % ord(max(text)))
766+
raise ValueError("max. code point found: %i, increase limit" % ord(max(text)))
767767

768768
-----
769769

0 commit comments

Comments
 (0)