@samitouri / QOS-React / commits / 5b975411a1

Minor typos fixed (#12005)

* commiting -> committing * doens't -> doesn't * interuption -> interruption * inital -> initial * statment -> statement

Semen Zhydenko committed Jan 11, 2018 at 13:24 UTC 5b975411a1258c2747730ee428140a2d01ea673b
10 files changed +16 -16
fixtures/dom/src/components/fixtures/selects/index.js
+1 -1
@@ -123,7 +123,7 @@ class SelectFixture extends React.Component {
123 <li>Click the "Reset" button</li>
124 </TestCase.Steps>
125 <TestCase.ExpectedResult>
126 - The select should be reset to the inital value, "bar"
126 + The select should be reset to the initial value, "bar"
127 </TestCase.ExpectedResult>
128
129 <div className="test-fixture">
packages/react-dom/src/__tests__/ReactDOMRoot-test.internal.js
+1 -1
@@ -302,7 +302,7 @@ describe('ReactDOMRoot', () => {
302 expect(container.textContent).toEqual('2');
303 });
304
305 - it('commits a later batch without commiting an earlier batch', () => {
305 + it('commits a later batch without committing an earlier batch', () => {
306 const root = ReactDOM.createRoot(container);
307 const batch1 = root.createBatch();
308 batch1.render(1);
packages/react-reconciler/src/__tests__/ReactIncremental-test.js
+2 -2
@@ -704,7 +704,7 @@ describe('ReactIncremental', () => {
704
705 ops = [];
706
707 - // Since we did nothing to the middle subtree during the interuption,
707 + // Since we did nothing to the middle subtree during the interruption,
708 // we should be able to reuse the reconciliation work that we already did
709 // without restarting.
710 ReactNoop.flush();
@@ -866,7 +866,7 @@ describe('ReactIncremental', () => {
866
867 ops = [];
868
869 - // Since we did nothing to the middle subtree during the interuption,
869 + // Since we did nothing to the middle subtree during the interruption,
870 // we should be able to reuse the reconciliation work that we already did
871 // without restarting.
872 ReactNoop.flush();
packages/react-reconciler/src/__tests__/ReactIncrementalSideEffects-test.js
+2 -2
@@ -348,7 +348,7 @@ describe('ReactIncrementalSideEffects', () => {
348 ReactNoop.render(<Foo text="foo" step={1} />);
349 ReactNoop.flush();
350
351 - // Since we did nothing to the middle subtree during the interuption,
351 + // Since we did nothing to the middle subtree during the interruption,
352 // we should be able to reuse the reconciliation work that we already did
353 // without restarting. The side-effects should still be replayed.
354
@@ -413,7 +413,7 @@ describe('ReactIncrementalSideEffects', () => {
413 ReactNoop.render(<Foo text="foo" step={1} />);
414 ReactNoop.flush(30);
415
416 - // Since we did nothing to the middle subtree during the interuption,
416 + // Since we did nothing to the middle subtree during the interruption,
417 // we should be able to reuse the reconciliation work that we already did
418 // without restarting. The side-effects should still be replayed.
419
scripts/babel/transform-prevent-infinite-loops.js
+1 -1
@@ -53,7 +53,7 @@ module.exports = ({types: t, template}) => {
53 ITERATOR: iterator,
54 MAX_ITERATIONS: t.numericLiteral(MAX_ITERATIONS),
55 });
56 - // No block statment e.g. `while (1) 1;`
56 + // No block statement e.g. `while (1) 1;`
57 if (!path.get('body').isBlockStatement()) {
58 const statement = path.get('body').node;
59 path.get('body').replaceWith(t.blockStatement([guard, statement]));
scripts/bench/benchmarks/hacker-news/index.html
+2 -2
@@ -24,9 +24,9 @@
24 <script src="top-stories.js"></script>
25 <script src="benchmark.js"></script>
26 <script>
27 - performance.mark('Inital Render');
27 + performance.mark('Initial Render');
28 render();
29 - performance.measure('Inital Render', 'Inital Render');
29 + performance.measure('Initial Render', 'Initial Render');
30 requestAnimationFrame(() => {
31 performance.mark('Update Render');
32 render();
scripts/bench/benchmarks/pe-class-components/index.html
+2 -2
@@ -19,9 +19,9 @@
19 </script>
20 <script src="benchmark.js"></script>
21 <script>
22 - performance.mark('Inital Render');
22 + performance.mark('Initial Render');
23 render();
24 - performance.measure('Inital Render', 'Inital Render');
24 + performance.measure('Initial Render', 'Initial Render');
25 requestAnimationFrame(() => {
26 performance.mark('Update Render');
27 render();
scripts/bench/benchmarks/pe-functional-components/index.html
+2 -2
@@ -19,9 +19,9 @@
19 </script>
20 <script src="benchmark.js"></script>
21 <script>
22 - performance.mark('Inital Render');
22 + performance.mark('Initial Render');
23 render();
24 - performance.measure('Inital Render', 'Inital Render');
24 + performance.measure('Initial Render', 'Initial Render');
25 requestAnimationFrame(() => {
26 performance.mark('Update Render');
27 render();
scripts/bench/benchmarks/pe-no-components/index.html
+2 -2
@@ -19,9 +19,9 @@
19 </script>
20 <script src="benchmark.js"></script>
21 <script>
22 - performance.mark('Inital Render');
22 + performance.mark('Initial Render');
23 render();
24 - performance.measure('Inital Render', 'Inital Render');
24 + performance.measure('Initial Render', 'Initial Render');
25 requestAnimationFrame(() => {
26 performance.mark('Update Render');
27 render();
scripts/release/publish-commands/publish-to-npm.js
+1 -1
@@ -50,7 +50,7 @@ const push = async ({cwd, dry, packages, version}) => {
50 }
51
52 // 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).
54 if (!isPrerelease) {
55 await execUnlessDry(
56 `npm dist-tag add ${project}@${packageVersion} next`,