Skip to content

Commit 199c7f2

Browse files
committed
Add @ksato9700 fixes
1 parent 4550b61 commit 199c7f2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

python.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -309,13 +309,13 @@ Python 3 strings hold unicode data. Python has a few ways to represent strings.
309309
``s.capitalize()`` Capitalizes a string
310310
``s.casefold()`` Lowercase in a unicode compliant manner
311311
``s.center(w, [char])`` Center a string in ``w`` spaces with ``char`` (default ``" "``)
312-
``s.count(sub, [start, [end]])`` Count ``sub`` in ``s`` between start and end
312+
``s.count(sub, [start, [end]])`` Count ``sub`` in ``s`` between ``start`` and ``end``
313313
``s.encode(encoding, errors= 'strict')`` Encode a string into bytes
314314
``s.endswith(sub)`` Check for a suffix
315315
``s.expandtabs( tabsize=8)`` Replaces tabs with spaces
316316
``s.find(sub, [start, [end]])`` Find substring or return ``-1``
317317
``s.format(*args, **kw)`` Format string
318-
``s.format_map( mapping)`` Format strings with a mapping
318+
``s.format_map( mapping)`` Format strings with a mapping
319319
``s.index(sub, [start, [end]])`` Find substring or raise ``ValueError``
320320
``s.isalnum()`` Boolean if alphanumeric
321321
``s.isalpha()`` Boolean if alphabetic
@@ -329,7 +329,7 @@ Python 3 strings hold unicode data. Python has a few ways to represent strings.
329329
``s.istitle()`` Boolean if titlecased
330330
``s.isupper()`` Boolean if uppercased
331331
``s.join(iterable)`` Return a string inserted between sequence
332-
``s.ljust(w, [char])`` Left justify in w spaces with ``char`` (default ``' '``)
332+
``s.ljust(w, [char])`` Left justify in ``w`` spaces with ``char`` (default ``' '``)
333333
``s.lower()`` Lowercase
334334
``s.lstrip([chars])`` Left strip ``chars`` (default spacing).
335335
``s.partition(sub)`` Split string at first occurrence of substring, return ``(before, sub, after)``
@@ -338,11 +338,11 @@ Python 3 strings hold unicode data. Python has a few ways to represent strings.
338338
``s.rindex(sub, [start, [end]])`` Find rightmost substring or raise ``ValueError``
339339
``s.rjust(w, [char)`` Right justify in w spaces with char (default ``" "``)
340340
``s.rpartition(sub)`` Rightmost partition
341-
``s.rsplit([sep, [maxsplit=-1])`` Rightmost split by sep (defaults to whitespace)
341+
``s.rsplit([sep, [maxsplit=-1])`` Rightmost split by ``sep`` (defaults to whitespace)
342342
``s.rstrip([chars])`` Right strip
343343
``s.split([sep, [maxsplit=-1]])`` Split a string into sequence around substring
344-
``s.splitlines( keepends=False)`` Break string at line boundaries
345-
``s.startswith( prefix, [start, [end]])`` Check for prefix
344+
``s.splitlines( keepends=False)`` Break string at line boundaries
345+
``s.startswith( prefix, [start, [end]])`` Check for prefix
346346
``s.strip([chars])`` Remove leading and trailing whitespace (default) or ``chars``
347347
``s.swapcase()`` Swap casing of string
348348
``s.title()`` Titlecase string

0 commit comments

Comments
 (0)