From fabf7ba93d438b91cf0e775167741b62e54b3561 Mon Sep 17 00:00:00 2001 From: Jordy Date: Thu, 25 Jul 2024 08:16:56 +0200 Subject: [PATCH] docs: fix typo (#849) --- 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: