Skip to content

Commit 8f1acfc

Browse files
committed
Fix some comments
1 parent 1a77dae commit 8f1acfc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/rules/prop-types.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ module.exports = function(context) {
259259
},
260260

261261
ObjectExpression: function(node) {
262-
// Search for the displayName declaration
262+
// Search for the proptypes declaration
263263
node.properties.forEach(function(property) {
264264
if (!isPropTypesDeclaration(property.key)) {
265265
return;

tests/lib/rules/sort-comp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ eslintTester.addRuleTest('lib/rules/sort-comp', {
6161
jsx: true
6262
}
6363
}, {
64-
// Must but a custom method in 'everything-else'
64+
// Must put a custom method in 'everything-else'
6565
code: [
6666
'var Hello = React.createClass({',
6767
' onClick: function() {},',

0 commit comments

Comments
 (0)