Update jsdoc.md (#1677)

This commit is contained in:
Godfery 2021-09-27 09:37:40 +08:00 committed by GitHub
parent dcf31435ab
commit 028c578bc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -13,6 +13,8 @@ weight: -1
* This is a function.
*
* @param {string} n - A string param
* @param {string} [o] - A optional string param
* @param {string} [d=DefaultValue] - A optional string param
* @return {string} A good string
*
* @example
@ -20,7 +22,7 @@ weight: -1
* foo('hello')
*/
function foo(n) {
function foo(n, o, d) {
return n
}
```