Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1034e26

Browse files
NE-SmallTownsophiebits
authored andcommitted
Fix typos (facebook#14124)
1 parent 5618da4 commit 1034e26

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

fixtures/attribute-behavior/src/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ class App extends React.Component {
860860
});
861861
break;
862862
default:
863-
throw new Error('Switch statement should be exhuastive');
863+
throw new Error('Switch statement should be exhaustive');
864864
}
865865

866866
// Sort
@@ -887,7 +887,7 @@ class App extends React.Component {
887887
});
888888
}
889889
default:
890-
throw new Error('Switch statement should be exhuastive');
890+
throw new Error('Switch statement should be exhaustive');
891891
}
892892
}
893893

packages/react-dom/src/server/escapeTextForBrowser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function escapeHtml(string) {
5656

5757
let escape;
5858
let html = '';
59-
let index = 0;
59+
let index;
6060
let lastIndex = 0;
6161

6262
for (index = match.index; index < str.length; index++) {

packages/react-reconciler/src/ReactFiberBeginWork.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ function mountLazyComponent(
811811
break;
812812
}
813813
default: {
814-
// This message intentionally doesn't metion ForwardRef or MemoComponent
814+
// This message intentionally doesn't mention ForwardRef or MemoComponent
815815
// because the fact that it's a separate type of work is an
816816
// implementation detail.
817817
invariant(

0 commit comments

Comments
 (0)