diff --git a/content/en/tags-returns.md b/content/en/tags-returns.md index 116d80d6..ce37b97c 100644 --- a/content/en/tags-returns.md +++ b/content/en/tags-returns.md @@ -81,7 +81,7 @@ function sum(a, b, retArr) { * Returns the sum of a and b * @param {number} a * @param {number} b - * @returns {Promise} Promise object represents the sum of a and b + * @returns {Promise<number>} Promise object represents the sum of a and b */ function sumAsync(a, b) { return new Promise(function(resolve, reject) { @@ -89,4 +89,4 @@ function sumAsync(a, b) { }); } ``` -{% endexample %} \ No newline at end of file +{% endexample %} diff --git a/tags-returns.html b/tags-returns.html index c0a3c5f7..0fbe3bd5 100644 --- a/tags-returns.html +++ b/tags-returns.html @@ -96,7 +96,7 @@

Examples

* Returns the sum of a and b * @param {number} a * @param {number} b - * @returns {Promise} Promise object represents the sum of a and b + * @returns {Promise<number>} Promise object represents the sum of a and b */ function sumAsync(a, b) { return new Promise(function(resolve, reject) { @@ -132,4 +132,4 @@ - \ No newline at end of file +