Skip to content

chore: fix spelling (behaviour → behavior) in multiple comment files#218

Closed
everettbu wants to merge 3 commits into
mainfrom
fix/typo-environment
Closed

chore: fix spelling (behaviour → behavior) in multiple comment files#218
everettbu wants to merge 3 commits into
mainfrom
fix/typo-environment

Conversation

@everettbu

@everettbu everettbu commented Dec 12, 2025

Copy link
Copy Markdown

Mirror of facebook/react#35267
Original author: Harshrj53


Summary

This PR fixes a small spelling inconsistency in several comment blocks across
the React codebase. React uses American English, so the British spelling
"behaviour" was updated to "behavior" in three files:

  • packages/react-devtools-extensions/src/contentScripts/proxy.js
  • packages/react-reconciler/src/ReactFiberCommitWork.js
  • packages/react/src/ReactAct.js

These changes are limited to comments only and do not affect any runtime code.

How did you test this change?

  • Verified using git grep that no other occurrences of "behaviour" exist.
  • Confirmed that the files build and lint normally.
  • Since this modification only affects comments, no functional behavior was changed.

@greptile-apps

greptile-apps Bot commented Dec 12, 2025

Copy link
Copy Markdown

Greptile Overview

Greptile Summary

This PR corrects British spelling "behaviour" to American spelling "behavior" in two comment blocks, aligning with React's American English convention.

Changes:

  • packages/react-devtools-extensions/src/contentScripts/proxy.js: Updated comment about Firefox content script injection
  • packages/react-reconciler/src/ReactFiberCommitWork.js: Updated comment about React Native shadow node behavior testing

Note: The PR description mentions packages/react/src/ReactAct.js as one of three changed files, but this file was not modified in this PR. There's still an occurrence of "behaviour" in ReactAct.js at line 126 that may need to be addressed separately.

Confidence Score: 5/5

  • This PR is safe to merge with no risk
  • The changes are purely cosmetic, affecting only comments with no impact on runtime behavior. The spelling corrections are accurate and consistent with React's American English convention.
  • No files require special attention

Important Files Changed

File Analysis

Filename Score Overview
packages/react-devtools-extensions/src/contentScripts/proxy.js 5/5 Changed "behaviour" to "behavior" in comment - correct spelling fix
packages/react-reconciler/src/ReactFiberCommitWork.js 5/5 Changed "behaviour" to "behavior" in comment - correct spelling fix

@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.

2 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

@everettbu everettbu added the Resolution: Stale Automatically closed due to inactivity label Mar 4, 2026
@everettbu

Copy link
Copy Markdown
Author

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

@everettbu everettbu closed this Mar 11, 2026
@everettbu
everettbu deleted the fix/typo-environment branch March 11, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Resolution: Stale Automatically closed due to inactivity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants