Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions fixtures/attribute-behavior/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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');
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/react-dom/src/server/escapeTextForBrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function escapeHtml(string) {

let escape;
let html = '';
let index = 0;
Copy link
Copy Markdown
Contributor Author

@NE-SmallTown NE-SmallTown Nov 6, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Below we do index = match.index, so it doesn't need assign here

let index;
let lastIndex = 0;

for (index = match.index; index < str.length; index++) {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-reconciler/src/ReactFiberBeginWork.js
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,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(
Expand Down