diff --git a/doc/api/net.md b/doc/api/net.md index ea0b9139fd33f1..a7b6eff6008136 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -1064,8 +1064,7 @@ client.on('end', () => { }); ``` -To connect on the socket `/tmp/echo.sock` the second line would just be -changed to: +To connect on the socket `/tmp/echo.sock`: ```js const client = net.createConnection({ path: '/tmp/echo.sock' }); @@ -1174,8 +1173,7 @@ Test this by using `telnet`: $ telnet localhost 8124 ``` -To listen on the socket `/tmp/echo.sock` the third line from the last would -just be changed to: +To listen on the socket `/tmp/echo.sock`: ```js server.listen('/tmp/echo.sock', () => {