Skip to content

Commit

Permalink
docs: Fix a few typos
Browse files Browse the repository at this point in the history
There are small typos in:
- compat/src/index.js
- debug/src/debug.js
- test/polyfills.js

Fixes:
- Should read `representation` rather than `represantation`.
- Should read `nonetheless` rather than `nontheless`.
- Should read `argument` rather than `arugment`.

Signed-off-by: Tim Gates <tim.gates@iress.com>
  • Loading branch information
timgates42 committed Dec 30, 2022
1 parent 8a6d301 commit 0c076bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compat/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const unstable_batchedUpdates = (callback, arg) => callback(arg);
* @template Arg
* @template Result
* @param {(arg: Arg) => Result} callback function that runs before the flush
* @param {Arg} [arg] Optional arugment that can be passed to the callback
* @param {Arg} [arg] Optional argument that can be passed to the callback
* @returns
*/
const flushSync = (callback, arg) => callback(arg);
Expand Down
2 changes: 1 addition & 1 deletion debug/src/debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export function initDebug() {
errorInfo.componentStack = getOwnerStack(vnode);
oldCatchError(error, vnode, oldVNode, errorInfo);

// when an error was handled by an ErrorBoundary we will nontheless emit an error
// when an error was handled by an ErrorBoundary we will nonetheless emit an error
// event on the window object. This is to make up for react compatibility in dev mode
// and thus make the Next.js dev overlay work.
if (typeof error.then != 'function') {
Expand Down
2 changes: 1 addition & 1 deletion test/polyfills.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ chai.use((chai, util) => {

//
// The following code overwrites karma's internal logging feature to
// support a much prettier and humand readable represantation of
// support a much prettier and humand readable representation of
// console logs in our terminal. This includes indentation, coloring
// and support for Map and Set objects.
//
Expand Down

0 comments on commit 0c076bf

Please sign in to comment.