Skip to content

Commit

Permalink
docs: fix typo (#849)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordypereira authored Jul 25, 2024
1 parent 5ca45e1 commit fabf7ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/4.examples/stream-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Streaming is a powerful feature of h3. It allows you to send data to the client
To stream a response, you first need to create a stream using the [`ReadableStream`](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream) API:

```ts
const steam = new ReadableStream();
const stream = new ReadableStream();
```

For the example, we will create a start function that will send a random number every 100 milliseconds. After 1000 milliseconds, it will close the stream:
Expand Down

0 comments on commit fabf7ba

Please sign in to comment.