From 7f8e2005fec42144c51e6131c9d8c93899db57f3 Mon Sep 17 00:00:00 2001 From: Jordy Date: Wed, 24 Jul 2024 18:01:18 +0200 Subject: [PATCH] docs: typo in stream-response.md --- docs/4.examples/stream-response.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/4.examples/stream-response.md b/docs/4.examples/stream-response.md index b7384bee..104827b9 100644 --- a/docs/4.examples/stream-response.md +++ b/docs/4.examples/stream-response.md @@ -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: