From acf4f519fde97541e800c432ca0b3d18698fdabc Mon Sep 17 00:00:00 2001 From: Scarlett McAllister Date: Thu, 27 Jun 2024 16:58:55 -0300 Subject: [PATCH 1/2] Fix typo to be preposition, not verb --- .../components/src/higher-order/with-spoken-messages/index.tsx | 2 +- packages/compose/README.md | 2 +- packages/compose/src/higher-order/with-instance-id/index.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/components/src/higher-order/with-spoken-messages/index.tsx b/packages/components/src/higher-order/with-spoken-messages/index.tsx index 5e0d52c81ad438..6c6034463ec6cd 100644 --- a/packages/components/src/higher-order/with-spoken-messages/index.tsx +++ b/packages/components/src/higher-order/with-spoken-messages/index.tsx @@ -7,7 +7,7 @@ import { speak } from '@wordpress/a11y'; /** @typedef {import('react').ComponentType} ComponentType */ /** - * A Higher Order Component used to be provide speak and debounced speak + * A Higher Order Component used to provide speak and debounced speak * functions. * * @see https://developer.wordpress.org/block-editor/packages/packages-a11y/#speak diff --git a/packages/compose/README.md b/packages/compose/README.md index 62eaad1800a6a8..f3109253e44c11 100644 --- a/packages/compose/README.md +++ b/packages/compose/README.md @@ -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 diff --git a/packages/compose/src/higher-order/with-instance-id/index.tsx b/packages/compose/src/higher-order/with-instance-id/index.tsx index f2e78e7a80cfc4..b22db31133e818 100644 --- a/packages/compose/src/higher-order/with-instance-id/index.tsx +++ b/packages/compose/src/higher-order/with-instance-id/index.tsx @@ -11,7 +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 + * A Higher Order Component used to provide a unique instance ID by * component. */ const withInstanceId = createHigherOrderComponent( From b060f94f75c14a2eecf3d694830e80817560c230 Mon Sep 17 00:00:00 2001 From: Scarlett McAllister Date: Thu, 27 Jun 2024 17:12:20 -0300 Subject: [PATCH 2/2] Reformat to fit comment on one line --- .../components/src/higher-order/with-spoken-messages/index.tsx | 3 +-- packages/compose/src/higher-order/with-instance-id/index.tsx | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/components/src/higher-order/with-spoken-messages/index.tsx b/packages/components/src/higher-order/with-spoken-messages/index.tsx index 6c6034463ec6cd..df97427594ef36 100644 --- a/packages/components/src/higher-order/with-spoken-messages/index.tsx +++ b/packages/components/src/higher-order/with-spoken-messages/index.tsx @@ -7,8 +7,7 @@ import { speak } from '@wordpress/a11y'; /** @typedef {import('react').ComponentType} ComponentType */ /** - * A Higher Order Component used to 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 * diff --git a/packages/compose/src/higher-order/with-instance-id/index.tsx b/packages/compose/src/higher-order/with-instance-id/index.tsx index b22db31133e818..3b4131930bf1bf 100644 --- a/packages/compose/src/higher-order/with-instance-id/index.tsx +++ b/packages/compose/src/higher-order/with-instance-id/index.tsx @@ -11,8 +11,7 @@ import useInstanceId from '../../hooks/use-instance-id'; type InstanceIdProps = { instanceId: string | number }; /** - * A Higher Order Component used to 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 > >(