Skip to content

Commit

Permalink
doc: fix promise-all wrong function reference (type-challenges#13623)
Browse files Browse the repository at this point in the history
Co-authored-by: caohang <[email protected]>
  • Loading branch information
xiao11lang and caohang authored Jul 29, 2022
1 parent f7e6774 commit d6f64a9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion questions/00020-medium-promise-all/README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const promise3 = new Promise<string>((resolve, reject) => {
});

// expected to be `Promise<[number, 42, string]>`
const p = Promise.all([promise1, promise2, promise3] as const)
const p = PromiseAll([promise1, promise2, promise3] as const)
```

<!--info-footer-start--><br><a href="../../README.ja.md" target="_blank"><img src="https://img.shields.io/badge/-%E6%88%BB%E3%82%8B-grey" alt="戻る"/></a> <a href="https://tsch.js.org/20/answer/ja" target="_blank"><img src="https://img.shields.io/badge/-%E8%A7%A3%E7%AD%94%E3%82%92%E5%85%B1%E6%9C%89-teal" alt="解答を共有"/></a> <a href="https://tsch.js.org/20/solutions" target="_blank"><img src="https://img.shields.io/badge/-%E8%A7%A3%E7%AD%94%E3%82%92%E7%A2%BA%E8%AA%8D-de5a77?logo=awesome-lists&logoColor=white" alt="解答を確認"/></a> <!--info-footer-end-->
2 changes: 1 addition & 1 deletion questions/00020-medium-promise-all/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const promise3 = new Promise<string>((resolve, reject) => {
});

// expected to be `Promise<[number, 42, string]>`
const p = Promise.all([promise1, promise2, promise3] as const)
const p = PromiseAll([promise1, promise2, promise3] as const)
```


Expand Down
2 changes: 1 addition & 1 deletion questions/00020-medium-promise-all/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const promise3 = new Promise<string>((resolve, reject) => {
});

// expected to be `Promise<[number, 42, string]>`
const p = Promise.all([promise1, promise2, promise3] as const)
const p = PromiseAll([promise1, promise2, promise3] as const)
```

<!--info-footer-start--><br><a href="../../README.zh-CN.md" target="_blank"><img src="https://img.shields.io/badge/-%E8%BF%94%E5%9B%9E%E9%A6%96%E9%A1%B5-grey" alt="返回首页"/></a> <a href="https://tsch.js.org/20/answer/zh-CN" target="_blank"><img src="https://img.shields.io/badge/-%E5%88%86%E4%BA%AB%E4%BD%A0%E7%9A%84%E8%A7%A3%E7%AD%94-teal" alt="分享你的解答"/></a> <a href="https://tsch.js.org/20/solutions" target="_blank"><img src="https://img.shields.io/badge/-%E6%9F%A5%E7%9C%8B%E8%A7%A3%E7%AD%94-de5a77?logo=awesome-lists&logoColor=white" alt="查看解答"/></a> <!--info-footer-end-->

0 comments on commit d6f64a9

Please sign in to comment.