Skip to content

doc: document default length as buffer.length

Rodrigo Muino Tomonari requested to merge github/fork/wbt/improve-default-doc into main

The Buffer documentation documents the 'buf.length' property as: 'Returns the number of bytes in buf.' It uses the .length property in its own internal references on that page. Buffer.byteLength is a static function which takes a string parameter. The documentation was confusing; this PR should help clarify it.

Merge request reports

Loading