From 1c4077b7455e037bd8f81f48e9c51d60c972f8e9 Mon Sep 17 00:00:00 2001 From: Mark McCann Date: Sun, 10 Nov 2019 19:45:00 -0600 Subject: [PATCH] [Docs] Typo fix in example Reverts an incorrect typo fix made in #248. Closes #299 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fc631c5..d36621d 100644 --- a/README.md +++ b/README.md @@ -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`.