From 32e94b17fcdfee304ae7e93a0a20502761205e09 Mon Sep 17 00:00:00 2001 From: 9saurabh9 <9saurabhch9@gmail.com> Date: Sat, 12 Jul 2025 23:45:00 +0530 Subject: [PATCH] learn: fix net module import in server and client example --- apps/site/pages/en/learn/modules/how-to-use-streams.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/site/pages/en/learn/modules/how-to-use-streams.md b/apps/site/pages/en/learn/modules/how-to-use-streams.md index 0e61b44c56152..433e41c3df669 100644 --- a/apps/site/pages/en/learn/modules/how-to-use-streams.md +++ b/apps/site/pages/en/learn/modules/how-to-use-streams.md @@ -302,7 +302,7 @@ server.listen(8080, () => { ``` ```mjs -import { net } from 'node:net'; +import net from 'node:net'; // Create a TCP server const server = net.createServer(socket => { @@ -345,7 +345,7 @@ client.on('end', () => { ``` ```mjs -import { net } from 'node:net'; +import net from 'node:net'; // Connect to the server at localhost:8080 const client = net.createConnection({ port: 8080 }, () => {