From d6f64a94e6b2c0d4e42e20d514caa31217ac32dd Mon Sep 17 00:00:00 2001 From: xiao11lang <33827620+xiao11lang@users.noreply.github.com> Date: Fri, 29 Jul 2022 19:50:24 +0800 Subject: [PATCH] doc: fix promise-all wrong function reference (#13623) Co-authored-by: caohang --- questions/00020-medium-promise-all/README.ja.md | 2 +- questions/00020-medium-promise-all/README.md | 2 +- questions/00020-medium-promise-all/README.zh-CN.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/questions/00020-medium-promise-all/README.ja.md b/questions/00020-medium-promise-all/README.ja.md index d82d5e9d2..fae44a59d 100644 --- a/questions/00020-medium-promise-all/README.ja.md +++ b/questions/00020-medium-promise-all/README.ja.md @@ -10,7 +10,7 @@ const promise3 = new Promise((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) ```
戻る 解答を共有 解答を確認 diff --git a/questions/00020-medium-promise-all/README.md b/questions/00020-medium-promise-all/README.md index 97ac79ac2..77cab96cd 100644 --- a/questions/00020-medium-promise-all/README.md +++ b/questions/00020-medium-promise-all/README.md @@ -10,7 +10,7 @@ const promise3 = new Promise((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) ``` diff --git a/questions/00020-medium-promise-all/README.zh-CN.md b/questions/00020-medium-promise-all/README.zh-CN.md index db6698604..a29574d49 100644 --- a/questions/00020-medium-promise-all/README.zh-CN.md +++ b/questions/00020-medium-promise-all/README.zh-CN.md @@ -12,7 +12,7 @@ const promise3 = new Promise((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) ```
返回首页 分享你的解答 查看解答