Skip to content

Commit

Permalink
[Docs] Fix typo in example
Browse files Browse the repository at this point in the history
  • Loading branch information
gingur authored and ljharb committed Jan 3, 2019
1 parent 33e559c commit 215265c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -278,7 +278,7 @@ const props = {
// Let's say your component is called 'MyComponent'

// Works with standalone PropTypes
PropTypes.checkPropTypes(myPropTypes, props, 'prop', 'MyComponent');
PropTypes.checkPropTypes(myPropTypes, props, 'age', 'MyComponent');
// This will warn as follows:
// Warning: Failed prop type: Invalid prop `age` of type `string` supplied to
// `MyComponent`, expected `number`.
Expand Down

0 comments on commit 215265c

Please sign in to comment.