From 13080f99ba65cf1c6f92b05f1b14c69d16b74923 Mon Sep 17 00:00:00 2001 From: jpersson Date: Mon, 14 Dec 2015 23:27:37 -0500 Subject: [PATCH] Rephrase comment to better describe use of `warning()` --- src/isomorphic/classic/class/ReactClass.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/isomorphic/classic/class/ReactClass.js b/src/isomorphic/classic/class/ReactClass.js index f3f545c0ae..632a301307 100644 --- a/src/isomorphic/classic/class/ReactClass.js +++ b/src/isomorphic/classic/class/ReactClass.js @@ -389,7 +389,7 @@ function validateTypeDef(Constructor, typeDef, location) { for (var propName in typeDef) { if (typeDef.hasOwnProperty(propName)) { // use a warning instead of an invariant so components - // don't show up in prod but not in __DEV__ + // don't show up in prod but only in __DEV__ warning( typeof typeDef[propName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' +