update docs hot.md (#2954)

* Update hot.md

* Update hot.md
This commit is contained in:
e3dio
2023-05-19 15:23:24 -07:00
committed by GitHub
parent 0036c3d8f5
commit 4101eeabde

View File

@@ -79,7 +79,7 @@ declare global {
var count: number;
}
globalThis.count = globalThis.count ?? 0;
globalThis.count ??= 0;
console.log(`Reloaded ${globalThis.count} times`);
globalThis.count++;
@@ -105,7 +105,7 @@ Bun provides the following simplified API for implementing HTTP servers. Refer t
```ts#server.ts
import {type Serve} from "bun";
globalThis.count = globalThis.count ?? 0;
globalThis.count ??= 0;
globalThis.count++;
export default {
@@ -133,7 +133,7 @@ declare global {
var server: Server;
}
globalThis.count = globalThis.count ?? 0;
globalThis.count ??= 0;
globalThis.count++;
// define server parameters