docs: fix small typos (#1702)

This commit is contained in:
Sjors Smits
2023-09-04 18:23:58 +00:00
committed by GitHub
parent 27bbe19eee
commit 575e7813b7
+1 -1
View File
@@ -15,7 +15,7 @@ be used to pass arbitrary data to downstream (or upstream) handlers. This
special [\_app](/docs/concepts/app-wrapper.md) wrapper and normal
[routes](/docs/concepts/routes.md). `ctx.state` is normally set by modifying its
properties, e.g. `ctx.state.loggedIn = true`, but you can also replace the
entire object like `ctx.state = { loggedIn = true }`.
entire object like `ctx.state = { loggedIn: true }`.
```ts routes/_middleware.ts
import { MiddlewareHandlerContext } from "$fresh/server.ts";