From a9cb6c3f54f41e865ca769297f2d92cc44ca343c Mon Sep 17 00:00:00 2001 From: Matt Pelmear Date: Fri, 30 Jul 2021 11:31:06 -0700 Subject: [PATCH] Fix broken HTML for promise resolve type added in #7491db0 --- content/en/tags-returns.md | 4 ++-- tags-returns.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 +