summaryrefslogtreecommitdiff
path: root/docs/index.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/index.md')
-rw-r--r--docs/index.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/index.md b/docs/index.md
index 5d8ba9d..72a679c 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -31,8 +31,8 @@ readFile("filename", callback(data))
// --- langauge equivalent
// Do Soemthing
([name; callback]
- `use "io" [open; read]
- callback `sync read `sync open `sync name
+ `use "file" [open; read]
+ callback `sync String $ read `sync open `sync name
) `async ("filename"; callback)
// Continue while readFile is running
```