Skip to content

Commit 649fb18

Browse files
authored
Typo in README.md (#107)
2 parents b0f63e1 + 61bf286 commit 649fb18

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,16 @@ let router = Router::new()
6767

6868
router
6969
.as_codegen()
70-
.write_type("./bindings", TypeScript::new());
70+
.write_type("./bindings.ts", TypeScript::new());
7171
```
7272

7373
3. Attach the Qubit router to an Axum router, and start it
7474

7575
```rs
7676
// Create a service and handle
7777
let (qubit_service, qubit_handle) = router
78-
.as_rpc()
79-
.into_service(());
78+
.as_rpc(())
79+
.into_service();
8080

8181
// Nest into an Axum router
8282
let axum_router = axum::Router::<()>::new()
@@ -100,7 +100,7 @@ qubit_handle.stop().unwrap();
100100
```ts
101101
// Import transport from client, and generated server type
102102
import { build_client, http } from "@qubit-rs/client";
103-
import type { QubitServer } from "./bindings";
103+
import type { QubitServer } from "./bindings.ts";
104104

105105
// Connect with the API
106106
const api = build_client<QubitServer>(http("http://localhost:9944/rpc"));

0 commit comments

Comments
 (0)