◐ Shell
clean mode source ↗

doc: switch the order of Writable and Readable · nodejs/node@e00e5e6

Original file line numberDiff line numberDiff line change

@@ -37,10 +37,10 @@ the elements of the API that are required to *implement* new types of streams.

3737
3838

There are four fundamental stream types within Node.js:

3939
40-

* [`Readable`][] - streams from which data can be read (for example

41-

[`fs.createReadStream()`][]).

4240

* [`Writable`][] - streams to which data can be written (for example

4341

[`fs.createWriteStream()`][]).

42+

* [`Readable`][] - streams from which data can be read (for example

43+

[`fs.createReadStream()`][]).

4444

* [`Duplex`][] - streams that are both `Readable` and `Writable` (for example

4545

[`net.Socket`][]).

4646

* [`Transform`][] - `Duplex` streams that can modify or transform the data as it