Skip to content

Commit

Permalink
Fix typo to be preposition, not verb, in some package comments and do…
Browse files Browse the repository at this point in the history
…cumentations (WordPress#62945)

* Fix typo to be preposition, not verb

* Reformat to fit comment on one line

---------

Unlinked contributors: no+reply@roygbyte.com.

Co-authored-by: t-hamano <wildworks@git.wordpress.org>
  • Loading branch information
roygbyte and t-hamano authored Jun 28, 2024
1 parent 6d3cc7a commit 540331b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import { speak } from '@wordpress/a11y';
/** @typedef {import('react').ComponentType} ComponentType */

/**
* A Higher Order Component used to be provide speak and debounced speak
* functions.
* A Higher Order Component used to provide speak and debounced speak functions.
*
* @see https://developer.wordpress.org/block-editor/packages/packages-a11y/#speak
*
Expand Down
2 changes: 1 addition & 1 deletion packages/compose/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ _Returns_

### withInstanceId

A Higher Order Component used to be provide a unique instance ID by component.
A Higher Order Component used to provide a unique instance ID by component.

### withSafeTimeout

Expand Down
3 changes: 1 addition & 2 deletions packages/compose/src/higher-order/with-instance-id/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import useInstanceId from '../../hooks/use-instance-id';
type InstanceIdProps = { instanceId: string | number };

/**
* A Higher Order Component used to be provide a unique instance ID by
* component.
* A Higher Order Component used to provide a unique instance ID by component.
*/
const withInstanceId = createHigherOrderComponent(
< C extends WithInjectedProps< C, InstanceIdProps > >(
Expand Down

0 comments on commit 540331b

Please sign in to comment.