Fix typos (#14124)
This commit is contained in:
parent
5618da49d8
commit
1034e26fe5
|
@ -860,7 +860,7 @@ class App extends React.Component {
|
|||
});
|
||||
break;
|
||||
default:
|
||||
throw new Error('Switch statement should be exhuastive');
|
||||
throw new Error('Switch statement should be exhaustive');
|
||||
}
|
||||
|
||||
// Sort
|
||||
|
@ -887,7 +887,7 @@ class App extends React.Component {
|
|||
});
|
||||
}
|
||||
default:
|
||||
throw new Error('Switch statement should be exhuastive');
|
||||
throw new Error('Switch statement should be exhaustive');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ function escapeHtml(string) {
|
|||
|
||||
let escape;
|
||||
let html = '';
|
||||
let index = 0;
|
||||
let index;
|
||||
let lastIndex = 0;
|
||||
|
||||
for (index = match.index; index < str.length; index++) {
|
||||
|
|
|
@ -811,7 +811,7 @@ function mountLazyComponent(
|
|||
break;
|
||||
}
|
||||
default: {
|
||||
// This message intentionally doesn't metion ForwardRef or MemoComponent
|
||||
// This message intentionally doesn't mention ForwardRef or MemoComponent
|
||||
// because the fact that it's a separate type of work is an
|
||||
// implementation detail.
|
||||
invariant(
|
||||
|
|
Loading…
Reference in New Issue