Skip to content

Commit 1ebaa2a

Browse files
vsemozhetbyttargos
authored andcommittedSep 3, 2018
doc: unify optional arguments format in headings
Make space and comma distribution in some headings consistent with the majority of headings. PR-URL: #22397 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 1828017 commit 1ebaa2a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed
 

‎doc/api/dgram.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ Calling `socket.ref()` multiples times will have no additional effect.
259259
The `socket.ref()` method returns a reference to the socket so calls can be
260260
chained.
261261

262-
### socket.send(msg, [offset, length,] port [, address] [, callback])
262+
### socket.send(msg[, offset, length], port[, address][, callback])
263263
<!-- YAML
264264
added: v0.1.99
265265
changes:

‎doc/api/http2.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ Will be `true` if this `Http2Session` instance is still connecting, will be set
349349
to `false` before emitting `connect` event and/or calling the `http2.connect`
350350
callback.
351351

352-
#### http2session.destroy([error,][code])
352+
#### http2session.destroy([error][, code])
353353
<!-- YAML
354354
added: v8.4.0
355355
-->
@@ -392,7 +392,7 @@ connected, `true` if the `Http2Session` is connected with a `TLSSocket`,
392392
and `false` if the `Http2Session` is connected to any other kind of socket
393393
or stream.
394394

395-
#### http2session.goaway([code, [lastStreamID, [opaqueData]]])
395+
#### http2session.goaway([code[, lastStreamID[, opaqueData]]])
396396
<!-- YAML
397397
added: v9.4.0
398398
-->

‎doc/api/repl.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ buffered but not yet executed. This method is primarily intended to be
433433
called from within the action function for commands registered using the
434434
`replServer.defineCommand()` method.
435435

436-
### replServer.parseREPLKeyword(keyword, [rest])
436+
### replServer.parseREPLKeyword(keyword[, rest])
437437
<!-- YAML
438438
added: v0.8.9
439439
deprecated: v9.0.0

‎doc/api/zlib.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ added: v0.9.4
435435

436436
Close the underlying handle.
437437

438-
### zlib.flush([kind], callback)
438+
### zlib.flush([kind, ]callback)
439439
<!-- YAML
440440
added: v0.5.8
441441
-->

0 commit comments

Comments
 (0)
Please sign in to comment.