Skip to content

Commit

Permalink
fix: Typo in rpc readme.md (#3630)
Browse files Browse the repository at this point in the history
  • Loading branch information
roninjin10 authored Sep 18, 2024
1 parent 818ab95 commit 6a32efb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/rpc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ This section introduces how to configure a router using an imaginary database se

```ts filename="router.ts"
// router.ts
import { Router, Rpc } from "@effect/rpc"
import { RpcRouter, Rpc } from "@effect/rpc"
import { Effect, Ref } from "effect"
import { User, UserById, UserCreate, UserList } from "./request.js"

Expand Down Expand Up @@ -112,7 +112,7 @@ const db = {
// Router
// ---------------------------------------------

export const appRouter = Router.make(
export const appRouter = RpcRouter.make(
Rpc.effect(UserList, () => db.user.findMany()),
Rpc.effect(UserById, ({ id }) => db.user.findById(id)),
Rpc.effect(UserCreate, ({ name }) => db.user.create(name))
Expand Down

0 comments on commit 6a32efb

Please sign in to comment.