diff --git a/doc/api/dgram.md b/doc/api/dgram.md index b9b43fcb216c1e..87c7b6c64e2c12 100644 --- a/doc/api/dgram.md +++ b/doc/api/dgram.md @@ -265,7 +265,7 @@ Calling `socket.ref()` multiples times will have no additional effect. The `socket.ref()` method returns a reference to the socket so calls can be chained. -### socket.send(msg, [offset, length,] port [, address] [, callback]) +### socket.send(msg[, offset, length], port[, address][, callback]) @@ -392,7 +392,7 @@ connected, `true` if the `Http2Session` is connected with a `TLSSocket`, and `false` if the `Http2Session` is connected to any other kind of socket or stream. -#### http2session.goaway([code, [lastStreamID, [opaqueData]]]) +#### http2session.goaway([code[, lastStreamID[, opaqueData]]]) diff --git a/doc/api/repl.md b/doc/api/repl.md index cb2765eab44f8b..e66032279e5469 100644 --- a/doc/api/repl.md +++ b/doc/api/repl.md @@ -433,7 +433,7 @@ buffered but not yet executed. This method is primarily intended to be called from within the action function for commands registered using the `replServer.defineCommand()` method. -### replServer.parseREPLKeyword(keyword, [rest]) +### replServer.parseREPLKeyword(keyword[, rest])