diff options
author | 2022-10-26 18:23:51 +0100 | |
---|---|---|
committer | 2022-10-26 10:23:51 -0700 | |
commit | 44ff09015cb074e1d0e7dd11840b6bce81b6a538 (patch) | |
tree | 4796e1098f51fe1a1c76b3dd00fc906366dee53e | |
parent | 3c451820976a7c627f09abcdf97e5f084d2b6381 (diff) | |
download | bun-44ff09015cb074e1d0e7dd11840b6bce81b6a538.tar.gz bun-44ff09015cb074e1d0e7dd11840b6bce81b6a538.tar.zst bun-44ff09015cb074e1d0e7dd11840b6bce81b6a538.zip |
Minor fixes to README.md (#1395)
-rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -85,7 +85,7 @@ bun upgrade --canary - [Configuration](#configuration) - [bunfig.toml](#bunfigtoml) - [Loaders](#loaders) - - [CSS in JS](#css-in-js) + - [CSS in JS](#css-in-js-bun-dev-only) - [When `platform` is `browser`](#when-platform-is-browser) - [When `platform` is `bun`](#when-platform-is-bun) - [CSS Loader](#css-loader) @@ -2576,7 +2576,7 @@ console.log(ls); // null ## `Bun.listen` & `Bun.connect` - TCP/TLS sockets -`Bun.listen` and `Bun.connect` is bun's native TCP & TLS socket API. Use it to implement database clients, game servers – anything that needs to communicate over TCP (instead of HTTP). This is a low-level API intended for library others and for advanced use cases. +`Bun.listen` and `Bun.connect` is bun's native TCP & TLS socket API. Use it to implement database clients, game servers – anything that needs to communicate over TCP (instead of HTTP). This is a low-level API intended for library authors and for advanced use cases. Start a TCP server with `Bun.listen`: @@ -3861,7 +3861,7 @@ import { ptr, toArrayBuffer } from "bun:ffi"; let myTypedArray = new Uint8Array(32); const myPtr = ptr(myTypedArray); -// toTypedArray accepts a `byteOffset` and `byteLength` +// toArrayBuffer accepts a `byteOffset` and `byteLength` // if `byteLength` is not provided, it is assumed to be a null-terminated pointer myTypedArray = new Uint8Array(toArrayBuffer(myPtr, 0, 32), 0, 32); ``` |