]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-109451: Fix wrong format specifier in logging documentation (GH-109465...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 16 Sep 2023 14:39:06 +0000 (07:39 -0700)
committerGitHub <noreply@github.com>
Sat, 16 Sep 2023 14:39:06 +0000 (15:39 +0100)
(cherry picked from commit 929cc4e4a0999b777e1aa94f9c007db720e67f43)

Doc/library/logging.rst

index 1fd1d0966a6120220454eb9dd56a77eca03281f0..8741d64a1dbdeb75056a8781c1aba8ecb30baa0f 100644 (file)
@@ -890,7 +890,7 @@ you want to use.
 
 In the case of {}-formatting, you can specify formatting flags by placing them
 after the attribute name, separated from it with a colon. For example: a
-placeholder of ``{msecs:03d}`` would format a millisecond value of ``4`` as
+placeholder of ``{msecs:03.0f}`` would format a millisecond value of ``4`` as
 ``004``. Refer to the :meth:`str.format` documentation for full details on
 the options available to you.