Skip to content

Commit cb01cb0

Browse files
Fixed api & cli docs typo. (#5262)
* Fixed api & cli docs typo. * Fix --------- Co-authored-by: Colin McDonnell <[email protected]>
1 parent 64033f1 commit cb01cb0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/api/http.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ In development mode, Bun will surface errors in-browser with a built-in error pa
7171

7272
{% image src="/images/exception_page.png" caption="Bun's built-in 500 page" /%}
7373

74-
To handle server-side errors, implement an `error` handler. This function should return a `Response` to served to the client when an error occurs. This response will supercede Bun's default error page in `development` mode.
74+
To handle server-side errors, implement an `error` handler. This function should return a `Response` to serve to the client when an error occurs. This response will supersede Bun's default error page in `development` mode.
7575

7676
```ts
7777
Bun.serve({

docs/api/workers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ const worker = new Worker(new URL("worker.ts", import.meta.url).href);
130130
worker.unref();
131131
```
132132

133-
Note: `worker.unref()` is not available in browers.
133+
Note: `worker.unref()` is not available in browsers.
134134

135135
### `worker.ref()`
136136

@@ -151,7 +151,7 @@ const worker = new Worker(new URL("worker.ts", import.meta.url).href, {
151151
});
152152
```
153153

154-
Note: `worker.ref()` is not available in browers.
154+
Note: `worker.ref()` is not available in browsers.
155155

156156
## Memory usage with `smol`
157157

docs/cli/bun-install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ registry = "https://registry.yarnpkg.com/"
4747
# Install for production? This is the equivalent to the "--production" CLI argument
4848
production = false
4949

50-
# Disallow changes to lockfile? This is the equivalent to the "--fozen-lockfile" CLI argument
50+
# Disallow changes to lockfile? This is the equivalent to the "--frozen-lockfile" CLI argument
5151
frozenLockfile = false
5252

5353
# Don't actually install

0 commit comments

Comments
 (0)