Skip to content

Commit 434bf85

Browse files
ss18ManasJayanth
authored andcommitted
Minor typos fixed (facebook#12005)
* commiting -> committing * doens't -> doesn't * interuption -> interruption * inital -> initial * statment -> statement
1 parent c65cb88 commit 434bf85

File tree

10 files changed

+16
-16
lines changed

10 files changed

+16
-16
lines changed

fixtures/dom/src/components/fixtures/selects/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class SelectFixture extends React.Component {
123123
<li>Click the "Reset" button</li>
124124
</TestCase.Steps>
125125
<TestCase.ExpectedResult>
126-
The select should be reset to the inital value, "bar"
126+
The select should be reset to the initial value, "bar"
127127
</TestCase.ExpectedResult>
128128

129129
<div className="test-fixture">

packages/react-dom/src/__tests__/ReactDOMRoot-test.internal.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ describe('ReactDOMRoot', () => {
302302
expect(container.textContent).toEqual('2');
303303
});
304304

305-
it('commits a later batch without commiting an earlier batch', () => {
305+
it('commits a later batch without committing an earlier batch', () => {
306306
const root = ReactDOM.createRoot(container);
307307
const batch1 = root.createBatch();
308308
batch1.render(1);

packages/react-reconciler/src/__tests__/ReactIncremental-test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ describe('ReactIncremental', () => {
704704

705705
ops = [];
706706

707-
// Since we did nothing to the middle subtree during the interuption,
707+
// Since we did nothing to the middle subtree during the interruption,
708708
// we should be able to reuse the reconciliation work that we already did
709709
// without restarting.
710710
ReactNoop.flush();
@@ -866,7 +866,7 @@ describe('ReactIncremental', () => {
866866

867867
ops = [];
868868

869-
// Since we did nothing to the middle subtree during the interuption,
869+
// Since we did nothing to the middle subtree during the interruption,
870870
// we should be able to reuse the reconciliation work that we already did
871871
// without restarting.
872872
ReactNoop.flush();

packages/react-reconciler/src/__tests__/ReactIncrementalSideEffects-test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ describe('ReactIncrementalSideEffects', () => {
348348
ReactNoop.render(<Foo text="foo" step={1} />);
349349
ReactNoop.flush();
350350

351-
// Since we did nothing to the middle subtree during the interuption,
351+
// Since we did nothing to the middle subtree during the interruption,
352352
// we should be able to reuse the reconciliation work that we already did
353353
// without restarting. The side-effects should still be replayed.
354354

@@ -413,7 +413,7 @@ describe('ReactIncrementalSideEffects', () => {
413413
ReactNoop.render(<Foo text="foo" step={1} />);
414414
ReactNoop.flush(30);
415415

416-
// Since we did nothing to the middle subtree during the interuption,
416+
// Since we did nothing to the middle subtree during the interruption,
417417
// we should be able to reuse the reconciliation work that we already did
418418
// without restarting. The side-effects should still be replayed.
419419

scripts/babel/transform-prevent-infinite-loops.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ module.exports = ({types: t, template}) => {
5353
ITERATOR: iterator,
5454
MAX_ITERATIONS: t.numericLiteral(MAX_ITERATIONS),
5555
});
56-
// No block statment e.g. `while (1) 1;`
56+
// No block statement e.g. `while (1) 1;`
5757
if (!path.get('body').isBlockStatement()) {
5858
const statement = path.get('body').node;
5959
path.get('body').replaceWith(t.blockStatement([guard, statement]));

scripts/bench/benchmarks/hacker-news/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
<script src="top-stories.js"></script>
2525
<script src="benchmark.js"></script>
2626
<script>
27-
performance.mark('Inital Render');
27+
performance.mark('Initial Render');
2828
render();
29-
performance.measure('Inital Render', 'Inital Render');
29+
performance.measure('Initial Render', 'Initial Render');
3030
requestAnimationFrame(() => {
3131
performance.mark('Update Render');
3232
render();

scripts/bench/benchmarks/pe-class-components/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
</script>
2020
<script src="benchmark.js"></script>
2121
<script>
22-
performance.mark('Inital Render');
22+
performance.mark('Initial Render');
2323
render();
24-
performance.measure('Inital Render', 'Inital Render');
24+
performance.measure('Initial Render', 'Initial Render');
2525
requestAnimationFrame(() => {
2626
performance.mark('Update Render');
2727
render();

scripts/bench/benchmarks/pe-functional-components/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
</script>
2020
<script src="benchmark.js"></script>
2121
<script>
22-
performance.mark('Inital Render');
22+
performance.mark('Initial Render');
2323
render();
24-
performance.measure('Inital Render', 'Inital Render');
24+
performance.measure('Initial Render', 'Initial Render');
2525
requestAnimationFrame(() => {
2626
performance.mark('Update Render');
2727
render();

scripts/bench/benchmarks/pe-no-components/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
</script>
2020
<script src="benchmark.js"></script>
2121
<script>
22-
performance.mark('Inital Render');
22+
performance.mark('Initial Render');
2323
render();
24-
performance.measure('Inital Render', 'Inital Render');
24+
performance.measure('Initial Render', 'Initial Render');
2525
requestAnimationFrame(() => {
2626
performance.mark('Update Render');
2727
render();

scripts/release/publish-commands/publish-to-npm.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const push = async ({cwd, dry, packages, version}) => {
5050
}
5151

5252
// If we've just published a stable release,
53-
// Update the @next tag to also point to it (so @next doens't lag behind).
53+
// Update the @next tag to also point to it (so @next doesn't lag behind).
5454
if (!isPrerelease) {
5555
await execUnlessDry(
5656
`npm dist-tag add ${project}@${packageVersion} next`,

0 commit comments

Comments
 (0)