Skip to content

Commit

Permalink
Fix docs plural/singular
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnajdr committed Oct 13, 2023
1 parent 21134f9 commit c79b9f3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions packages/block-editor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ _Parameters_

Hook that retrieves the given setting for the block instance in use.

It looks up the settings first in the block instance hierarchy. If none is found, it'll look it up in the block editor store.
It looks up the setting first in the block instance hierarchy. If none is found, it'll look it up in the block editor settings.

_Usage_

Expand All @@ -964,13 +964,13 @@ _Returns_

### useSettings

Hook that retrieves the given setting for the block instance in use.
Hook that retrieves the given settings for the block instance in use.

It looks up the settings first in the block instance hierarchy. If none is found, it'll look it up in the block editor store.
It looks up the settings first in the block instance hierarchy. If none are found, it'll look them up in the block editor settings.

_Parameters_

- _paths_ `string[]`: The path to the setting.
- _paths_ `string[]`: The paths to the settings.

_Returns_

Expand Down
10 changes: 5 additions & 5 deletions packages/block-editor/src/components/use-setting/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ function mergeOrigins( value ) {
}

/**
* Hook that retrieves the given setting for the block instance in use.
* Hook that retrieves the given settings for the block instance in use.
*
* It looks up the settings first in the block instance hierarchy.
* If none is found, it'll look it up in the block editor store.
* If none are found, it'll look them up in the block editor settings.
*
* @param {string[]} paths The path to the setting.
* @param {string[]} paths The paths to the settings.
* @return {any[]} Returns the values defined for the settings.
*/
export function useSettings( paths ) {
Expand Down Expand Up @@ -235,8 +235,8 @@ export function useSettings( paths ) {
/**
* Hook that retrieves the given setting for the block instance in use.
*
* It looks up the settings first in the block instance hierarchy.
* If none is found, it'll look it up in the block editor store.
* It looks up the setting first in the block instance hierarchy.
* If none is found, it'll look it up in the block editor settings.
*
* @param {string} path The path to the setting.
* @return {any} Returns the value defined for the setting.
Expand Down

0 comments on commit c79b9f3

Please sign in to comment.