@samitouri / QOS-React-2 / commits / ea0cde2cf4

Fix PropTypes Documentation

Tim Yung committed Sep 17, 2013 at 14:29 UTC ea0cde2cf440a28733cd6511a3649b4de6405a58
1 file changed +2 -2
src/core/ReactPropTypes.js
+2 -2
@@ -42,7 +42,7 @@ var invariant = require('invariant');
42 *
43 * A more formal specification of how these methods are used:
44 *
45 - * type := array|bool|object|number|string|oneOf([...])|instanceOf(...)
45 + * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
46 * decl := ReactPropTypes.{type}(.isRequired)?
47 *
48 * Each and every declaration produces a function with the same signature. This
@@ -56,7 +56,7 @@ var invariant = require('invariant');
56 * var propValue = props[propName];
57 * invariant(
58 * propValue == null ||
59 - * typeof propValue === string ||
59 + * typeof propValue === 'string' ||
60 * propValue instanceof URI,
61 * 'Invalid `%s` supplied to `%s`, expected string or URI.',
62 * propName,