From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 12 Sep 2023 14:00:13 +0000 (-0700) Subject: [3.12] Fix an ironic typo in a code comment. (gh-109186) (#109188) X-Git-Tag: v3.12.0rc3~45 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=888bcf49c08cd2a9e5a9b1dc4d7791c1525b3d69;p=thirdparty%2FPython%2Fcpython.git [3.12] Fix an ironic typo in a code comment. (gh-109186) (#109188) Fix an ironic typo in a code comment. (gh-109186) (cherry picked from commit 75cd86599bad05cb372aed9fccc3ff884cd38b70) Co-authored-by: Raymond Hettinger --- diff --git a/Lib/random.py b/Lib/random.py index 586c3f7f9da9..84bbfc5df1bf 100644 --- a/Lib/random.py +++ b/Lib/random.py @@ -827,7 +827,7 @@ class Random(_random.Random): return k # Acceptance-rejection test. - # Note, the original paper errorneously omits the call to log(v) + # Note, the original paper erroneously omits the call to log(v) # when comparing to the log of the rescaled binomial distribution. if not setup_complete: alpha = (2.83 + 5.1 / b) * spq