From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 5 Oct 2023 17:10:39 +0000 (-0700) Subject: [3.11] gh-110383 TimeIt Docs Spelling Fix (GH-110407) (#110410) X-Git-Tag: v3.11.7~246 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6a6081f820cd850f1a4cac4a1ba28952bdf4a706;p=thirdparty%2FPython%2Fcpython.git [3.11] gh-110383 TimeIt Docs Spelling Fix (GH-110407) (#110410) gh-110383 TimeIt Docs Spelling Fix (GH-110407) Make 0.2 second plural (cherry picked from commit a973bf0f97e55ace9eab100f9eb95d7eedcb28ac) Co-authored-by: Towster15 <105541074+Towster15@users.noreply.github.com> --- diff --git a/Doc/library/timeit.rst b/Doc/library/timeit.rst index b59a6bc3742a..d0abea388172 100644 --- a/Doc/library/timeit.rst +++ b/Doc/library/timeit.rst @@ -151,7 +151,7 @@ The module defines three convenience functions and a public class: so that the total time >= 0.2 second, returning the eventual (number of loops, time taken for that number of loops). It calls :meth:`.timeit` with increasing numbers from the sequence 1, 2, 5, - 10, 20, 50, ... until the time taken is at least 0.2 second. + 10, 20, 50, ... until the time taken is at least 0.2 seconds. If *callback* is given and is not ``None``, it will be called after each trial with two arguments: ``callback(number, time_taken)``.