Skip to content

Commit 2793e5d

Browse files
committed
clarify warning message
1 parent b3157e0 commit 2793e5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/PropTypes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var PropTypes = assign({}, ReactPropTypes, {
99
*/
1010
falsy(props, propName, componentName) {
1111
if (props[propName])
12-
return new Error(`<${componentName}> may not have a "${propName}" prop`);
12+
return new Error(`<${componentName}> should not have a "${propName}" prop`);
1313
},
1414

1515
/**

0 commit comments

Comments
 (0)