]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-109451: Fix wrong format specifier in logging documentation (GH-109465)
authorAlberLC <37489786+AlberLC@users.noreply.github.com>
Sat, 16 Sep 2023 09:06:04 +0000 (11:06 +0200)
committerGitHub <noreply@github.com>
Sat, 16 Sep 2023 09:06:04 +0000 (10:06 +0100)
Doc/library/logging.rst

index cf3dcb96a4c4126630d018c0b6824ea4f9b6d437..acdeb88a546261cfd39076892aa28593b1bca1fc 100644 (file)
@@ -907,7 +907,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.