Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typos on react-devtools comments #16681

Merged
merged 1 commit into from
Sep 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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