Skip to content

Commit ede6cb2

Browse files
Correct some typos in comments (GH-98194)
Automerge-Triggered-By: GH:AlexWaygood
1 parent 61b6c40 commit ede6cb2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Modules/pyexpat.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1725,7 +1725,7 @@ add_error(PyObject *errors_module, PyObject *codes_dict,
17251725
const int error_code = (int)error_index;
17261726

17271727
/* NOTE: This keeps the source of truth regarding error
1728-
* messages with libexpat and (by definiton) in bulletproof sync
1728+
* messages with libexpat and (by definition) in bulletproof sync
17291729
* with the other uses of the XML_ErrorString function
17301730
* elsewhere within this file. pyexpat's copy of the messages
17311731
* only acts as a fallback in case of outdated runtime libexpat,

Objects/longobject.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -4628,7 +4628,7 @@ long_pow(PyObject *v, PyObject *w, PyObject *x)
46284628
/* k-ary values. If the exponent is large enough, table is
46294629
* precomputed so that table[i] == a**(2*i+1) % c for i in
46304630
* range(EXP_TABLE_LEN).
4631-
* Note: this is uninitialzed stack trash: don't pay to set it to known
4631+
* Note: this is uninitialized stack trash: don't pay to set it to known
46324632
* values unless it's needed. Instead ensure that num_table_entries is
46334633
* set to the number of entries actually filled whenever a branch to the
46344634
* Error or Done labels is possible.

0 commit comments

Comments
 (0)