diff options
author | 2022-07-11 13:26:45 +0100 | |
---|---|---|
committer | 2022-07-11 05:26:45 -0700 | |
commit | 1405158dfb7e1e858d9fcc19812008cba672120c (patch) | |
tree | 178ca44a3dca9f76f0cc8b72c75c867d7378de09 | |
parent | d6d8c0b80dc689de05d8dfe4306e6966f6ffb07e (diff) | |
download | bun-1405158dfb7e1e858d9fcc19812008cba672120c.tar.gz bun-1405158dfb7e1e858d9fcc19812008cba672120c.tar.zst bun-1405158dfb7e1e858d9fcc19812008cba672120c.zip |
Updated typo in example (#573)
Changed deocder to decoder
-rw-r--r-- | examples/mmap/1.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/mmap/1.js b/examples/mmap/1.js index 1c4f2c969..75018cb96 100644 --- a/examples/mmap/1.js +++ b/examples/mmap/1.js @@ -1,11 +1,11 @@ const map = Bun.mmap("./mmap.txt", { shared: true }); -const utf8deocder = new TextDecoder("utf-8"); +const utf8decoder = new TextDecoder("utf-8"); let old = new TextEncoder().encode("12345"); setInterval(() => { old = old.sort((a, b) => (Math.random() > 0.5 ? -1 : 1)); - console.log(`changing mmap to ~> ${utf8deocder.decode(old)}`); + console.log(`changing mmap to ~> ${utf8decoder.decode(old)}`); map.set(old); }, 4); |