Skip to content

Commit 3d9b303

Browse files
committed
docs: fix readme snippets
1 parent 2a6e491 commit 3d9b303

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,14 @@ let* conn = Blink.request conn req () in
3131
Finally, once we have made a request, we can call `Blink.stream` to
3232
stream-parse the results and receive the parts as they come:
3333

34-
```ocaml
34+
```ocaml,norun
3535
let rec run conn =
3636
let* conn, msgs = Blink.stream conn in
3737
match msgs with
3838
| [ `Done ] -> ()
3939
| msgs -> handle_messages msgs; run conn
4040
in
41-
let* () = run conn in
42-
(* ... *)
41+
run conn
4342
```
4443

4544
Or if we prefer to consume all messages and pull together a response, we can do so with `Blink.await`:

0 commit comments

Comments
 (0)