jscs-dev / jscs-jsdoc

JsDoc validation rules for jscs
MIT License
99 stars 35 forks source link

checkParamNames invalid example in README.md #154

Closed gajus closed 9 years ago

gajus commented 9 years ago

The invalid example does not throw an error:

/**
 * @param {String} msg
 * @param {Number|Object} [line]
 */
function method(message) {}
qfox commented 9 years ago

Hm, it does. I've added a test for this case to be sure in it.

gajus commented 9 years ago

It might have been an issue with 1.1.0.

qfox commented 9 years ago

Ah, true. Thanks! ;-)