Skip to content

Commit 1e2d745

Browse files
alexmalyshevmeta-codesync[bot]
authored andcommitted
Fix spelling errors
Summary: What it says in the title. Reviewed By: jbower-fb, yoney Differential Revision: D94927432 fbshipit-source-id: c0c683d095b30d53d0a7540b45637197529414a4
1 parent 8bd1d7f commit 1e2d745

7 files changed

Lines changed: 7 additions & 7 deletions

File tree

cinderx/Common/type.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ BorrowedRef<> typeLookupSafe(
4646
BorrowedRef<> name) {
4747
JIT_CHECK(PyUnicode_CheckExact(name), "name must be a str");
4848
// Silence false positive from TSAN when checking Py_TPFLAGS_READY.
49-
// This flag should never change during compliation although other
49+
// This flag should never change during compilation although other
5050
// flags may.
5151
ThreadedCompileSerialize guard;
5252

cinderx/Jit/generators_rt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ int jitgen_traverse(PyObject* obj, visitproc visit, void* arg) {
8888
#endif
8989
}
9090
// Try to use CPython traverse as much as we can as it has internals which
91-
// are hard to borrow in 3.14 (compares 'visit' to a speicifc internal
91+
// are hard to borrow in 3.14 (compares 'visit' to a specific internal
9292
// function).
9393
return PyGen_Type.tp_traverse(obj, visit, arg);
9494
}

cinderx/Jit/hir/refcount_insertion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ void stealInputs(
984984
if (rstate.isOwned() && dying_regs.count(reg)) {
985985
// This instruction is the last use of reg and we own a reference to it.
986986
// Normally we let ownership for the input pass to the instruction's
987-
// reciever.
987+
// receiver.
988988
//
989989
// However, for yield instructions, if the register is also in the
990990
// FrameState (localsplus/stack), we need to keep a strong reference even

cinderx/Jit/hir/type.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ Type Type::fromObject(PyObject* obj) {
433433

434434
bits_t lifetime = [&]() {
435435
// Serialize to silence TSAN errors about accessing the reference count of
436-
// which can change during compliation. However, this is really a false
436+
// which can change during compilation. However, this is really a false
437437
// positive as the mortality of an object should not change during
438438
// compilation.
439439
ThreadedCompileSerialize guard;

cinderx/PythonLib/cinderx/test_support.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def wrapper(*args: ..., **kwargs: ...) -> TRet:
229229
r = func(*args, **kwargs)
230230
# pyre-ignore[6]
231231
if len(deopts := cinderx.jit.get_and_clear_runtime_stats()["deopt"]):
232-
raise RuntimeError(f"Deopt occured {deopts}")
232+
raise RuntimeError(f"Deopt occurred {deopts}")
233233
return r
234234

235235
wrapper.inner_function = func

cinderx/StaticPython/classloader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ static PyObject* classloader_lookup_symbol(
839839
//
840840
// To be 100% correct, we could clear existing errors with `dlerror`,
841841
// call `dlsym` and then call `dlerror` again, to check whether an
842-
// error occured, but that'll be more work than we need.
842+
// error occurred, but that'll be more work than we need.
843843
PyErr_Format(
844844
PyExc_RuntimeError,
845845
"classloader: unable to lookup '%U' in '%U': %s",

cinderx/_cinderx-lib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ int cinderx_dict_watcher(
763763
globalCaches->notifyDictUnwatch(dict);
764764
break;
765765
}
766-
// key is overwhemingly likely to be interned, since in normal code it
766+
// key is overwhelmingly likely to be interned, since in normal code it
767767
// comes from co_names. If it's not, we at least know that an interned
768768
// string with its value exists (because we're watching it), so this
769769
// should just be a quick lookup.

0 commit comments

Comments
 (0)