Skip to content

Commit c724767

Browse files
committed
Merge pull request #53 from AlexKVal/fix_comment
Fix describing comment for hasSpreadOperator() method
2 parents ac42603 + 85eea91 commit c724767

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/rules/prop-types.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,9 @@ module.exports = function(context) {
8282
}
8383

8484
/**
85-
* Checks if the prop is declared
86-
* @param {String} name Name of the prop to check.
87-
* @param {Object} component The component to process
88-
* @returns {Boolean} True if the prop is declared, false if not.
85+
* Checks if the prop has spread operator.
86+
* @param {ASTNode} node The AST node being marked.
87+
* @returns {Boolean} True if the prop has spread operator, false if not.
8988
*/
9089
function hasSpreadOperator(node) {
9190
var tokens = context.getTokens(node);

0 commit comments

Comments
 (0)