Fix typos (#14124)
Heaven committed
Nov 10, 2018 at 02:17 UTC
1034e26fe5e42ba07492a736da7bdf5bf2108bc6
3 files changed
+4
-4
fixtures/attribute-behavior/src/App.js
+2
-2
@@ -860,7 +860,7 @@ class App extends React.Component {
860
});
861
break;
862
default:
863
- throw new Error('Switch statement should be exhuastive');
863
+ throw new Error('Switch statement should be exhaustive');
864
}
865
866
// Sort
@@ -887,7 +887,7 @@ class App extends React.Component {
887
});
888
}
889
default:
890
- throw new Error('Switch statement should be exhuastive');
890
+ throw new Error('Switch statement should be exhaustive');
891
}
892
}
893
packages/react-dom/src/server/escapeTextForBrowser.js
+1
-1
@@ -56,7 +56,7 @@ function escapeHtml(string) {
56
57
let escape;
58
let html = '';
59
- let index = 0;
59
+ let index;
60
let lastIndex = 0;
61
62
for (index = match.index; index < str.length; index++) {
packages/react-reconciler/src/ReactFiberBeginWork.js
+1
-1
@@ -811,7 +811,7 @@ function mountLazyComponent(
811
break;
812
}
813
default: {
814
- // This message intentionally doesn't metion ForwardRef or MemoComponent
814
+ // This message intentionally doesn't mention ForwardRef or MemoComponent
815
// because the fact that it's a separate type of work is an
816
// implementation detail.
817
invariant(