Skip to content

Commit ef33712

Browse files
authored
Fix typo in object.__format__ docs (GH-19504)
1 parent 515fce4 commit ef33712

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/reference/datamodel.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1350,7 +1350,7 @@ Basic customization
13501350

13511351
.. versionchanged:: 3.7
13521352
``object.__format__(x, '')`` is now equivalent to ``str(x)`` rather
1353-
than ``format(str(self), '')``.
1353+
than ``format(str(x), '')``.
13541354

13551355

13561356
.. _richcmpfuncs:

0 commit comments

Comments
 (0)