aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-11-02 01:43:10 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-11-02 01:43:10 -0700
commit4af4d3eeca01a520f805951b4ee4011a4d20caf1 (patch)
tree98baa47295a24109ebb7ee1a5fb5b7dbf4b19195
parent1e0155faf23bfb3fa5ce809c118eb640ca0996b2 (diff)
downloadbun-4af4d3eeca01a520f805951b4ee4011a4d20caf1.tar.gz
bun-4af4d3eeca01a520f805951b4ee4011a4d20caf1.tar.zst
bun-4af4d3eeca01a520f805951b4ee4011a4d20caf1.zip
Update README.md
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 6996c31d7..715af8234 100644
--- a/README.md
+++ b/README.md
@@ -3832,7 +3832,7 @@ const [major, minor, patch] = [
Bun v0.2.3 added `JSCallback` which lets you create JavaScript callback functions that you can pass to C/FFI functions. The C/FFI function can call into the JavaScript/TypeScript code. This is useful for asynchronous code or otherwise when you want to call into JavaScript code from C.
```ts
-import { dlopen, JSCallback } from "bun:ffi";
+import { dlopen, JSCallback, ptr } from "bun:ffi";
const {
symbols: { search },