Skip to content

Commit 206d61f

Browse files
Alex RohlederBrian Vaughn
Alex Rohleder
authored and
Brian Vaughn
committed
fix typos on react-devtools comments (#16681)
1 parent 61836fb commit 206d61f

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

packages/react-devtools-shared/src/backend/console.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export function dangerous_setTargetConsoleForTesting(
4747

4848
// v16 renderers should use this method to inject internals necessary to generate a component stack.
4949
// These internals will be used if the console is patched.
50-
// Injecting them separately allows the console to easily be patched or unpacted later (at runtime).
50+
// Injecting them separately allows the console to easily be patched or un-patched later (at runtime).
5151
export function registerRenderer(renderer: ReactRenderer): void {
5252
const {getCurrentFiber, findFiberByHostInstance, version} = renderer;
5353

packages/react-devtools-shared/src/backend/describeComponentFrame.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// This file was forked from the React GitHub repo:
1111
// https://raw.githubusercontent.com/facebook/react/master/packages/shared/describeComponentFrame.js
1212
//
13-
// It has been modified sligthly to add a zero width space as commented below.
13+
// It has been modified slightly to add a zero width space as commented below.
1414

1515
const BEFORE_SLASH_RE = /^(.*)[\\/]/;
1616

packages/react-devtools-shared/src/devtools/views/Components/NativeStyleEditor/AutoSizeInput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default function AutoSizeInput({
3838
}
3939
};
4040

41-
// Copy text stlyes from <input> to hidden sizing <div>
41+
// Copy text styles from <input> to hidden sizing <div>
4242
useLayoutEffect(() => {
4343
if (
4444
typeof window.getComputedStyle !== 'function' ||

packages/react-devtools-shared/src/devtools/views/Components/NativeStyleEditor/context.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ function NativeStyleContextController({children}: Props) {
121121
} else {
122122
resource.write(element, styleAndLayout);
123123

124-
// Schedule update with React if the curently-selected element has been invalidated.
124+
// Schedule update with React if the currently-selected element has been invalidated.
125125
if (id === selectedElementID) {
126126
setCurrentStyleAndLayout(styleAndLayout);
127127
}

packages/react-devtools-shared/src/devtools/views/DevTools.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99

1010
// Reach styles need to come before any component styles.
11-
// This makes overridding the styles simpler.
11+
// This makes overriding the styles simpler.
1212
import '@reach/menu-button/styles.css';
1313
import '@reach/tooltip/styles.css';
1414

0 commit comments

Comments
 (0)