浏览代码

[doc] mark parameter as optional

mightyplow 6 年之前
父节点
当前提交
114871d9a9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/isRequired.js

+ 1 - 1
lib/isRequired.js

@@ -2,7 +2,7 @@
  * A function which can be used as a function parameter default which throws an error
  * if the parameter is undefined
  *
- * @param {string} varname - name of the variable for the output
+ * @param {string} [varname] - name of the variable for the output
  * @throws {Error}
  */
 function isRequired (varname) {