Skip to content

Commit e020408

Browse files
seratchgaearon
authored andcommitted
Fix typos detected by github.com/client9/misspell (facebook#13349)
1 parent be4533a commit e020408

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

packages/react-reconciler/src/ReactFiberCommitWork.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export function logError(boundary: Fiber, errorInfo: CapturedValue<mixed>) {
117117
const suppressLogging = e && e.suppressReactErrorLogging;
118118
if (!suppressLogging) {
119119
// Rethrow it from a clean stack because this function is assumed to never throw.
120-
// We can't safely call console.error() here because it could *also* throw if overriden.
120+
// We can't safely call console.error() here because it could *also* throw if overridden.
121121
// https://github.com/facebook/react/issues/13188
122122
setTimeout(() => {
123123
throw e;

packages/react-reconciler/src/ReactFiberScheduler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1250,7 +1250,7 @@ function renderRoot(
12501250
let msUntilTimeout = nextLatestAbsoluteTimeoutMs - currentTimeMs;
12511251
msUntilTimeout = msUntilTimeout < 0 ? 0 : msUntilTimeout;
12521252

1253-
// TODO: Account for the Just Noticable Difference
1253+
// TODO: Account for the Just Noticeable Difference
12541254

12551255
const rootExpirationTime = root.expirationTime;
12561256
onSuspend(

packages/react-reconciler/src/ReactFiberUnwindWork.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ function throwException(
286286
// time. First, find the earliest uncommitted expiration time in the
287287
// tree, including work that is suspended. Then subtract the offset
288288
// used to compute an async update's expiration time. This will cause
289-
// high priority (interactive) work to expire earlier than neccessary,
290-
// but we can account for this by adjusting for the Just Noticable
289+
// high priority (interactive) work to expire earlier than necessary,
290+
// but we can account for this by adjusting for the Just Noticeable
291291
// Difference.
292292
const earliestExpirationTime = findEarliestOutstandingPriorityLevel(
293293
root,

packages/react-reconciler/src/__tests__/ReactIncrementalErrorReplay-test.internal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe('ReactIncrementalErrorReplay-test', () => {
1414
// Note: this test is fragile and relies on internals.
1515
// We almost always try to avoid such tests, but here the cost of
1616
// the list getting out of sync (and causing subtle bugs in rare cases)
17-
// is higher than the cost of maintaing the test.
17+
// is higher than the cost of maintaining the test.
1818
const {
1919
// Any Fiber factory function will do.
2020
createHostRootFiber,

0 commit comments

Comments
 (0)