Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 222e127

Browse files
committed
Fix markup.
1 parent 3540b50 commit 222e127

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/library/string.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,8 @@ as a string, overriding its own definition of formatting. By converting the
230230
value to a string before calling :meth:`__format__`, the normal formatting logic
231231
is bypassed.
232232

233-
Two conversion flags are currently supported: ``'!s'`` which calls :func:`str()`
234-
on the value, and ``'!r'`` which calls :func:`repr()`.
233+
Two conversion flags are currently supported: ``'!s'`` which calls :func:`str`
234+
on the value, and ``'!r'`` which calls :func:`repr`.
235235

236236
Some examples::
237237

@@ -289,7 +289,7 @@ Most built-in types implement the following options for format specifications,
289289
although some of the formatting options are only supported by the numeric types.
290290

291291
A general convention is that an empty format string (``""``) produces the same
292-
result as if you had called :func:`str()` on the value.
292+
result as if you had called :func:`str` on the value.
293293

294294
The general form of a *standard format specifier* is:
295295

0 commit comments

Comments
 (0)