Skip to content

doc: fix `writable._construct()` example

Rodrigo Muino Tomonari requested to merge github/fork/mkbaranovskyi/patch-1 into master

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:

  1. Incorrect property appointment in the constructor - no fd parameter is passed. Instead, this.fd is appointed in the _construct() method. Removing this line from the constructor() fixes the error.
  2. The fs.open() callback parameters switched places according to the fs.open reference (and my tests).
Checklist
  • [ x] documentation is changed or added

Merge request reports

Loading