From b716d2e6bafeecf8e024f2346b54a87c4f3f0ff9 Mon Sep 17 00:00:00 2001 From: Ansolve Date: Thu, 16 Nov 2023 22:40:50 +0800 Subject: [PATCH] fix(docs:lib/init): copied `lib.init.json` error. --- game/game.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/game/game.js b/game/game.js index fa85ea5a7..4f7e99cc3 100644 --- a/game/game.js +++ b/game/game.js @@ -8412,11 +8412,10 @@ req:(str,master)=>new Promise((resolve,reject)=>lib.init.req(str,resolve,reject,master)), /** - * Promise版的`lib.init.req` + * Promise版的`lib.init.json` * - * @param {string} str - 要读取的地址 - * @param {string} [master] - * @returns {Promise} + * @param {string} url - 要读取的地址 + * @returns {Promise} */ json:(url)=>new Promise((resolve,reject)=>lib.init.json(url,resolve,reject)),