Skip to content

Fix broken HTML for promise resolve type added in #7491db0 #219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions content/en/tags-returns.md
Original file line number Diff line number Diff line change
@@ -81,12 +81,12 @@ function sum(a, b, retArr) {
* Returns the sum of a and b
* @param {number} a
* @param {number} b
* @returns {Promise<number>} Promise object represents the sum of a and b
* @returns {Promise&lt;number&gt;} Promise object represents the sum of a and b
*/
function sumAsync(a, b) {
return new Promise(function(resolve, reject) {
resolve(a + b);
});
}
```
{% endexample %}
{% endexample %}
4 changes: 2 additions & 2 deletions tags-returns.html
Original file line number Diff line number Diff line change
@@ -96,7 +96,7 @@ <h2 id="examples">Examples</h2>
* Returns the sum of a and b
* @param {number} a
* @param {number} b
* @returns {Promise<number>} Promise object represents the sum of a and b
* @returns {Promise&lt;number&gt;} Promise object represents the sum of a and b
*/
function sumAsync(a, b) {
return new Promise(function(resolve, reject) {
@@ -132,4 +132,4 @@ <h2 id="related-links">Related Links</h2>
</script>
</body>

</html>
</html>