From 9b7b4431607441e45a24a0e98daffd89ec5c7e7c Mon Sep 17 00:00:00 2001 From: NanaVan Date: Fri, 17 Nov 2023 02:31:08 +0800 Subject: [PATCH] update a comment for example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a42cfa8c..c4ee166b 100644 --- a/README.md +++ b/README.md @@ -174,7 +174,7 @@ const sqlPromise = initSqlJs({ locateFile: file => `https://path/to/your/dist/folder/dist/${file}` }); const dataPromise = fetch("/path/to/database.sqlite").then(res => res.arrayBuffer()); -const [SQL, buf] = await Promise.all([sqlPromise, dataPromise]) +const [SQL, buf] = await Promise.all([sqlPromise, dataPromise]); // needed to be run in a async context const db = new SQL.Database(new Uint8Array(buf)); ```