Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Commit

Permalink
[Docs] Typo fix in example
Browse files Browse the repository at this point in the history
Reverts an incorrect typo fix made in #248.

Closes #299
  • Loading branch information
Mark McCann committed Nov 11, 2019
1 parent d2959d8 commit 1c4077b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ const props = {
// Let's say your component is called 'MyComponent'

// Works with standalone PropTypes
PropTypes.checkPropTypes(myPropTypes, props, 'age', 'MyComponent');
PropTypes.checkPropTypes(myPropTypes, props, 'prop', '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 1c4077b

Please sign in to comment.