From f55a718d5f4205cb5b7044b3825cf9afecb5b826 Mon Sep 17 00:00:00 2001 From: W3D Date: Sun, 5 Apr 2026 00:06:32 +0200 Subject: [PATCH] Fix typos in comments - CheckStringCoercion.js: "errors message message" -> "error message" - CheckStringCoercion.js: "atrribute" -> "attribute" - ReactFiberWorkLoop.js: "the the call" -> "the call" - ReactFiberComponentStack.js: "a a single" -> "a single" --- packages/react-reconciler/src/ReactFiberComponentStack.js | 2 +- packages/react-reconciler/src/ReactFiberWorkLoop.js | 2 +- packages/shared/CheckStringCoercion.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/react-reconciler/src/ReactFiberComponentStack.js b/packages/react-reconciler/src/ReactFiberComponentStack.js index da804171da5b..010adcc8b073 100644 --- a/packages/react-reconciler/src/ReactFiberComponentStack.js +++ b/packages/react-reconciler/src/ReactFiberComponentStack.js @@ -182,7 +182,7 @@ export function getOwnerStackByFiberInDev(workInProgress: Fiber): string { // In a real app it's typically not useful since the root app is always controlled // by the framework. These also tend to have noisy stacks because they're not rooted // in a React render but in some imperative bootstrapping code. It could be useful - // if the element was created in module scope. E.g. hoisted. We could add a a single + // if the element was created in module scope. E.g. hoisted. We could add a single // stack frame for context for example but it doesn't say much if that's a wrapper. if (owner && debugStack) { const formattedStack = formatOwnerStack(debugStack); diff --git a/packages/react-reconciler/src/ReactFiberWorkLoop.js b/packages/react-reconciler/src/ReactFiberWorkLoop.js index 9a3953c1b5a2..6ca2a1ddc11a 100644 --- a/packages/react-reconciler/src/ReactFiberWorkLoop.js +++ b/packages/react-reconciler/src/ReactFiberWorkLoop.js @@ -1922,7 +1922,7 @@ export function flushSyncFromReconciler(fn: (() => R) | void): R | void { } // If called outside of a render or commit will flush all sync work on all roots -// Returns whether the the call was during a render or not +// Returns whether the call was during a render or not export function flushSyncWork(): boolean { if ((executionContext & (RenderContext | CommitContext)) === NoContext) { flushSyncWorkOnAllRoots(); diff --git a/packages/shared/CheckStringCoercion.js b/packages/shared/CheckStringCoercion.js index a186d6755d99..d60997f231ba 100644 --- a/packages/shared/CheckStringCoercion.js +++ b/packages/shared/CheckStringCoercion.js @@ -12,7 +12,7 @@ * and Temporal.* types. See https://github.com/facebook/react/pull/22064. * * The functions in this module will throw an easier-to-understand, - * easier-to-debug exception with a clear errors message message explaining the + * easier-to-debug exception with a clear error message explaining the * problem. (Instead of a confusing exception thrown inside the implementation * of the `value` object). */ @@ -63,7 +63,7 @@ function testStringCoercion(value: mixed) { // To find which value is throwing, check the browser or debugger console. // Before this exception was thrown, there should be `console.error` output // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the - // problem and how that type was used: key, atrribute, input value prop, etc. + // problem and how that type was used: key, attribute, input value prop, etc. // In most cases, this console output also shows the component and its // ancestor components where the exception happened. //