]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix an ironic typo in a code comment. (gh-109186)
authorRaymond Hettinger <rhettinger@users.noreply.github.com>
Sat, 9 Sep 2023 15:21:42 +0000 (10:21 -0500)
committerGitHub <noreply@github.com>
Sat, 9 Sep 2023 15:21:42 +0000 (10:21 -0500)
Lib/random.py

index 586c3f7f9da938b336033ebbbf9b669c8f1695e9..84bbfc5df1bf239a344d44c03db43fdef943732e 100644 (file)
@@ -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