[Python-checkins] Fix comment typos in `_operator.c` (#98853)

AlexWaygood webhook-mailer at python.org
Sat Oct 29 14:25:15 EDT 2022


https://github.com/python/cpython/commit/1561e708c70c9fe6fdbaf8885a3ee4007715427e
commit: 1561e708c70c9fe6fdbaf8885a3ee4007715427e
branch: main
author: David Buchanan <d at vidbuchanan.co.uk>
committer: AlexWaygood <Alex.Waygood at Gmail.com>
date: 2022-10-29T19:25:09+01:00
summary:

Fix comment typos in `_operator.c` (#98853)

files:
M Modules/_operator.c

diff --git a/Modules/_operator.c b/Modules/_operator.c
index 77eabdb57af9..3005845ec932 100644
--- a/Modules/_operator.c
+++ b/Modules/_operator.c
@@ -731,9 +731,9 @@ _operator_is_not_impl(PyObject *module, PyObject *a, PyObject *b)
 /*
  * timing safe compare
  *
- * Returns 1 of the strings are equal.
+ * Returns 1 if the strings are equal.
  * In case of len(a) != len(b) the function tries to keep the timing
- * dependent on the length of b. CPU cache locally may still alter timing
+ * dependent on the length of b. CPU cache locality may still alter timing
  * a bit.
  */
 static int



More information about the Python-checkins mailing list