Skip to content

Commit 6a1facc

Browse files
Switch-up
1 parent fc2a0f7 commit 6a1facc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/library/codecs.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ any codec:
5555

5656
.. function:: charmap_build(string)
5757

58-
Return a mapping suitable for decoding a custom single-byte encoding.
59-
Given a :class:`str` *string* of up to 256 characters representing an
60-
encoding table, returns either a compact internal mapping object
58+
Return a mapping suitable for encoding with a custom single-byte encoding.
59+
Given a :class:`str` *string* of up to 256 characters representing a
60+
decoding table, returns either a compact internal mapping object
6161
``EncodingMap`` or a :class:`dictionary <dict>` mapping character ordinals
6262
to byte values. Raises a :exc:`TypeError` on invalid input.
6363

0 commit comments

Comments
 (0)