From 2d0aa3f315264f388eef3556433bb34c5298ca02 Mon Sep 17 00:00:00 2001 From: KruserG Date: Wed, 27 Oct 2021 14:36:22 -0400 Subject: [PATCH] Update api.md --- docs/api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api.md b/docs/api.md index f66e359..bcca195 100644 --- a/docs/api.md +++ b/docs/api.md @@ -159,7 +159,7 @@ Worker.readFile() remove a file in MEMFS, it is useful when you want to free the ### Worker.FS(method, args, jobId): Promise -Worker.FS() is a generic FS function to do anything you want, you can check [HERE](ihttps://emscripten.org/docs/api_reference/Filesystem-API.html) for all functions. +Worker.FS() is a generic FS function to do anything you want, you can check [HERE](https://emscripten.org/docs/api_reference/Filesystem-API.html) for all functions. **Arguments:** @@ -173,7 +173,7 @@ Worker.FS() is a generic FS function to do anything you want, you can check [HER (async () => { await worker.FS('writeFile', ['tmp.txt', 'Hi\nTesseract.js\n']); // equal to: - // await worker.readText('tmp.txt', 'Hi\nTesseract.js\n'); + // await worker.writeText('tmp.txt', 'Hi\nTesseract.js\n'); })(); ```