Skip to content

Commit

Permalink
Correct typos in rST formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
blaisep committed May 23, 2024
1 parent 925c0be commit 679eac8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Doc/library/stdtypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1905,6 +1905,7 @@ expression support in the :mod:`re` module).

Return ``True`` if the string is empty or all characters in the string are ASCII,
``False`` otherwise::

>>> 'a commom word'.isascii()
True
>>> 'acommomword'.isascii()
Expand All @@ -1930,9 +1931,7 @@ expression support in the :mod:`re` module).
>>> '0123456789'.isdecimal()
True

Decimal characters are those that can be used to form
numbers in base 10, e.g. U+0660, ARABIC-INDIC DIGIT
ZERO::
Decimal characters are those that can be used to form numbers in base 10, e.g. U+0660, ARABIC-INDIC DIGIT ZERO::

>>> '٠١٢٣٤٥٦٧٨٩'.isdecimal() # ARABIC-INDIC DIGIT ZERO TO NINE
True
Expand Down Expand Up @@ -2028,6 +2027,7 @@ expression support in the :mod:`re` module).
empty, ``False`` otherwise. Nonprintable characters are those characters defined
in the Unicode character database as "Other" or "Separator", excepting the
ASCII space (0x20) which is considered printable.

::
>>> ''.isprintable()
True
Expand Down Expand Up @@ -2309,8 +2309,7 @@ If the separator is not found, return a 3-tuple containing

If *sep* is not specified or ``None``, any whitespace string is a
separator.
Except for splitting from the right, :meth:`rsplit` behaves like
:meth:`split` which is described in detail below.
Except for splitting from the right, :meth:`rsplit` behaves like :meth:`split` which is described in detail below.

.. method:: str.rstrip([chars])

Expand Down

0 comments on commit 679eac8

Please sign in to comment.