doc: fix `writable._construct()` example
This is my first pull request, please correct me if I'm missing something. The proposed changes include two small bug fixes in the Stream
reference, namely in the writable._construct() example:
- Incorrect property appointment in the
constructor
- nofd
parameter is passed. Instead,this.fd
is appointed in the_construct()
method. Removing this line from theconstructor()
fixes the error. - The
fs.open()
callback parameters switched places according to the fs.open reference (and my tests).
Checklist
- [ x] documentation is changed or added