Skip to content

Commit

Permalink
docs: update readme text
Browse files Browse the repository at this point in the history
  • Loading branch information
jkusa authored Nov 17, 2021
1 parent cdd9d42 commit d11167f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Property decorator for declaring for [glimmer component](http://api.emberjs.com/

### `@forbidExtraArgs`

Class decorator for checking that only arguments with the `@arg` decorator are provided to a component (e.g. prevent mispelled or invalid arguments).
Class decorator for checking that only arguments with the `@arg` decorator are provided to a component (e.g. prevent misspelled or invalid arguments).

## Motivation

Expand All @@ -33,7 +33,7 @@ get sortBy() {
}
```

It also provides an opt-in class decorator `@forbidExtraArgs` that will verify that all arguments passed to the component have been registered with the `@arg`. This allows you to catch easy mistakes such as mispelled or invalid arguments.
It also provides an opt-in class decorator `@forbidExtraArgs` that will verify that all arguments passed to the component have been registered with the `@arg`. This allows you to catch easy mistakes such as misspelled or invalid arguments.

```js
import Component from '@glimmer/component';
Expand Down

0 comments on commit d11167f

Please sign in to comment.