doc: small fixes in the buffer.md
Checklist
-
documentation is changed or added -
commit message follows commit guidelines
Affected core subsystem(s)
doc, buffer
Description of change
-
var
=>const
/let
. - Fix a syntax error.
- Fix wrong arguments in function calls*.
- Fix some copy-paste artifacts.
- Repeat the remark about buffer module property where it is needed.
- Add a missing variable declaration.
- Remove / fix wrong remarks in the buffer.md
- Fix examples in buffer.md to avoid confusion (fixes #9786 (closed))
- Remove an extraneous word in the buffer.md
*As to null
=> undefined
in point 3, it is a temporary fix untill #9801 (closed) is addressed.