Skip to content

Commit a777cfa

Browse files
lpincamhdawson
authored andcommitted
doc: remove repetition
Merge two similar sentences into one. PR-URL: #31868 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
1 parent 65e18a8 commit a777cfa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/api/stream.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1887,11 +1887,11 @@ This function MUST NOT be called by application code directly. It should be
18871887
implemented by child classes, and called by the internal `Writable` class
18881888
methods only.
18891889

1890-
The `callback` method must be called to signal either that the write completed
1891-
successfully or failed with an error. The first argument passed to the
1892-
`callback` must be the `Error` object if the call failed or `null` if the
1893-
write succeeded. The `callback` must be called synchronously inside of
1894-
`writable._write()` or asynchronously (i.e. different tick).
1890+
The `callback` function must be called synchronously inside of
1891+
`writable._write()` or asynchronously (i.e. different tick) to signal either
1892+
that the write completed successfully or failed with an error.
1893+
The first argument passed to the `callback` must be the `Error` object if the
1894+
call failed or `null` if the write succeeded.
18951895

18961896
All calls to `writable.write()` that occur between the time `writable._write()`
18971897
is called and the `callback` is called will cause the written data to be

0 commit comments

Comments
 (0)