mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
doc: clarifying variables in fs.write()
This commit clarifies variables in the Filesystem docs. Prior, the documentation for fs.write() had an ambiguous remark on the parameters of offset and length. Therefore, this commit makes explicit that the length parameter in fs.write() is used to denote the number of bytes, which is a clearer reference for its usage. PR-URL: https://github.com/nodejs/node/pull/9792 Ref: https://github.com/nodejs/node/issues/7868 Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
This commit is contained in:
1 parent
7287dddd69
commit
6d0e1621e5
1 file changed
+2
-1
+2
-1
@@ -1347,7 +1347,8 @@ added: v0.0.2
|
||||
|
||||
Write `buffer` to the file specified by `fd`.
|
||||
|
||||
`offset` and `length` determine the part of the buffer to be written.
|
||||
`offset` determines the part of the buffer to be written, and `length` is
|
||||
an integer specifying the number of bytes to write.
|
||||
|
||||
`position` refers to the offset from the beginning of the file where this data
|
||||
should be written. If `typeof position !== 'number'`, the data will be written
|
||||
|
||||
Reference in new issue
Block a user