Skip to content

Fix typos in comments (becuase/becasue → because, occured → occurred)#610

Closed
everettbu wants to merge 1 commit into
mainfrom
fix/typos-in-comments
Closed

Fix typos in comments (becuase/becasue → because, occured → occurred)#610
everettbu wants to merge 1 commit into
mainfrom
fix/typos-in-comments

Conversation

@everettbu

Copy link
Copy Markdown

Mirror of facebook/react#35895
Original author: emmaeng700


Summary

Fixed spelling mistakes found in inline code comments across 7 files:

  • becuasebecause in ReactFizzConfigDOM.js
  • becuasebecause in ReactDOMHydrationDiff-test.js
  • becuasebecause in ReactFiberCompleteWork.js
  • becasuebecause in ReactDOMFizzServerBrowser-test.js
  • becasuebecause in ReactDOMImageLoad-test.internal.js
  • occuredoccurred in ErrorBoundary.js
  • occuredoccurred in ReactAsyncActions-test.js

No logic changes — comments only.

Fix the following spelling mistakes found in inline code comments:
- `becuase` → `because` in ReactFizzConfigDOM.js
- `becuase` → `because` in ReactDOMHydrationDiff-test.js
- `becuase` → `because` in ReactFiberCompleteWork.js
- `becasue` → `because` in ReactDOMFizzServerBrowser-test.js
- `becasue` → `because` in ReactDOMImageLoad-test.internal.js
- `occured` → `occurred` in ErrorBoundary.js
- `occured` → `occurred` in ReactAsyncActions-test.js
@greptile-apps

greptile-apps Bot commented Feb 24, 2026

Copy link
Copy Markdown

Greptile Summary

Straightforward typo corrections across 7 files, fixing misspellings of "because" (becuase/becasuebecause) and "occurred" (occuredoccurred). Six of the seven changes are in comments only. One change in ErrorBoundary.js fixes a user-facing fallback error message string. No logic, behavior, or test assertion changes. Verified that no instances of the misspellings remain in the codebase.

Confidence Score: 5/5

  • This PR is safe to merge — it only corrects spelling in comments and one error message string with no logic changes.
  • All changes are single-word typo fixes in comments (6 files) and one user-facing string (1 file). No code logic is affected. No test assertions depend on the changed strings. The corrected spellings are verified to be accurate.
  • No files require special attention

Important Files Changed

Filename Overview
packages/react-devtools-shared/src/devtools/views/ErrorBoundary/ErrorBoundary.js Fixes typo in user-facing error message string: "occured" → "occurred". No logic changes.
packages/react-dom-bindings/src/server/ReactFizzConfigDOM.js Fixes typo in inline comment: "becuase" → "because". No logic changes.
packages/react-dom/src/tests/ReactDOMFizzServerBrowser-test.js Fixes typo in test comment: "becasue" → "because". No logic changes.
packages/react-dom/src/tests/ReactDOMHydrationDiff-test.js Fixes typo in test comment: "becuase" → "because". No logic changes.
packages/react-dom/src/tests/ReactDOMImageLoad-test.internal.js Fixes typo in test comment: "becasue" → "because". No logic changes.
packages/react-reconciler/src/ReactFiberCompleteWork.js Fixes typo in inline comment: "becuase" → "because". No logic changes.
packages/react-reconciler/src/tests/ReactAsyncActions-test.js Fixes typo in test comment: "occured" → "occurred". No logic changes.

Last reviewed commit: cd2d662

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

7 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

@everettbu

Copy link
Copy Markdown
Author

Upstream PR was closed or merged. Code is synced via branch mirror.

@everettbu everettbu closed this Feb 24, 2026
@everettbu
everettbu deleted the fix/typos-in-comments branch February 24, 2026 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants