From 1a25f9639a9668d8ea90022b0f3d3b47d29971b6 Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Sun, 26 Aug 2018 19:02:27 +0300 Subject: doc: remove redundant 'Example:' and similar notes Some nits were also fixed in passing. PR-URL: https://github.com/nodejs/node/pull/22537 Reviewed-By: Trivikram Kamat Reviewed-By: Ruben Bridgewater Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca Reviewed-By: Sakthipriyan Vairamani Reviewed-By: James M Snell --- doc/api/net.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'doc/api/net.md') diff --git a/doc/api/net.md b/doc/api/net.md index 428ac17214..e90a3fad0e 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -124,8 +124,6 @@ as reported by the operating system if listening on an IP socket For a server listening on a pipe or UNIX domain socket, the name is returned as a string. -Example: - ```js const server = net.createServer((socket) => { socket.end('goodbye\n'); @@ -716,8 +714,7 @@ connects on `'192.168.1.1'`, the value of `socket.localAddress` would be added: v0.9.6 --> -The numeric representation of the local port. For example, -`80` or `21`. +The numeric representation of the local port. For example, `80` or `21`. ### socket.pause() @@ -758,8 +755,7 @@ The string representation of the remote IP family. `'IPv4'` or `'IPv6'`. added: v0.5.10 --> -The numeric representation of the remote port. For example, -`80` or `21`. +The numeric representation of the remote port. For example, `80` or `21`. ### socket.resume() -- cgit v1.2.3