]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Correct some typos in comments (GH-98194)
authorjonasdlindner <42033762+jonasdlindner@users.noreply.github.com>
Sun, 6 Nov 2022 16:54:44 +0000 (17:54 +0100)
committerGitHub <noreply@github.com>
Sun, 6 Nov 2022 16:54:44 +0000 (08:54 -0800)
Automerge-Triggered-By: GH:AlexWaygood
Modules/pyexpat.c
Objects/longobject.c

index 165cb0effae2e490b2f349f1768aeb0cae796b32..3fe4259edabef5d6ae564174ecc8555c6e2ed3c3 100644 (file)
@@ -1725,7 +1725,7 @@ add_error(PyObject *errors_module, PyObject *codes_dict,
     const int error_code = (int)error_index;
 
     /* NOTE: This keeps the source of truth regarding error
-     *       messages with libexpat and (by definiton) in bulletproof sync
+     *       messages with libexpat and (by definition) in bulletproof sync
      *       with the other uses of the XML_ErrorString function
      *       elsewhere within this file.  pyexpat's copy of the messages
      *       only acts as a fallback in case of outdated runtime libexpat,
index 652fdb7974b1c8c84145bf2dbbf3d6e83aedf582..80cd7c14c6db2874f1d1210b160dc1588d3ab1b6 100644 (file)
@@ -4628,7 +4628,7 @@ long_pow(PyObject *v, PyObject *w, PyObject *x)
     /* k-ary values.  If the exponent is large enough, table is
      * precomputed so that table[i] == a**(2*i+1) % c for i in
      * range(EXP_TABLE_LEN).
-     * Note: this is uninitialzed stack trash: don't pay to set it to known
+     * Note: this is uninitialized stack trash: don't pay to set it to known
      * values unless it's needed. Instead ensure that num_table_entries is
      * set to the number of entries actually filled whenever a branch to the
      * Error or Done labels is possible.