Skip to content

Commit

Permalink
fix typos on react-devtools comments (#16681)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Rohleder authored and Brian Vaughn committed Sep 6, 2019
1 parent 61836fb commit 206d61f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/react-devtools-shared/src/backend/console.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function dangerous_setTargetConsoleForTesting(

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// This file was forked from the React GitHub repo:
// https://raw.githubusercontent.com/facebook/react/master/packages/shared/describeComponentFrame.js
//
// It has been modified sligthly to add a zero width space as commented below.
// It has been modified slightly to add a zero width space as commented below.

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function AutoSizeInput({
}
};

// Copy text stlyes from <input> to hidden sizing <div>
// Copy text styles from <input> to hidden sizing <div>
useLayoutEffect(() => {
if (
typeof window.getComputedStyle !== 'function' ||
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function NativeStyleContextController({children}: Props) {
} else {
resource.write(element, styleAndLayout);

// Schedule update with React if the curently-selected element has been invalidated.
// Schedule update with React if the currently-selected element has been invalidated.
if (id === selectedElementID) {
setCurrentStyleAndLayout(styleAndLayout);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

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

Expand Down

0 comments on commit 206d61f

Please sign in to comment.