docs: fix "no-op" typo

This commit is contained in:
Eric Y Liu 2021-07-05 17:16:00 -07:00
commit f005f14316
2 changed files with 2 additions and 2 deletions

View file

@ -48,7 +48,7 @@ In this example, we use the open source module [clipboard-copy](https://github.c
### Preventing copy functionality ### Preventing copy functionality
To prevent text from being copied entirely, pass a "noop" function to the `copy` prop. To prevent text from being copied entirely, pass a no-op function to the `copy` prop.
<CodeSnippet code="yarn add -D carbon-components-svelte" copy={() => {}} /> <CodeSnippet code="yarn add -D carbon-components-svelte" copy={() => {}} />

View file

@ -27,6 +27,6 @@ In this example, we use the open source module [clipboard-copy](https://github.c
### Preventing copy functionality ### Preventing copy functionality
To prevent text from being copied entirely, pass a "noop" function to the `copy` prop. To prevent text from being copied entirely, pass a no-op function to the `copy` prop.
<CopyButton text="This text should not be copied" copy={() => {}} /> <CopyButton text="This text should not be copied" copy={() => {}} />