aboutsummaryrefslogtreecommitdiff
path: root/docs/fs.md
diff options
context:
space:
mode:
authorGeoff Gustafson <geoff@linux.intel.com>2017-03-14 13:25:49 -0700
committerJimmy Huang <jimmy.huang@linux.intel.com>2017-03-14 13:25:49 -0700
commit783af0f0fa918110f4e688139290f44c3314609f (patch)
treeb0ef6af32022331ae0944764b6d34a78dc9e1916 /docs/fs.md
parent873efad512cff3285ae6236a06968de644582c51 (diff)
[util] Add macros/functions to standardize argument validation (#817)
The new ZJS_VALIDATE_ARGS macro and related macros are to be used at the top of any JerryScript C binding to verify the quantity and types of arguments, and return standard exceptions if there is a problem. The comments above the macros in zjs_util.h explain the details of how they are to be used. Signed-off-by: Geoff Gustafson <geoff@linux.intel.com>
Diffstat (limited to 'docs/fs.md')
-rw-r--r--docs/fs.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/fs.md b/docs/fs.md
index b6564a9..8c5f8ba 100644
--- a/docs/fs.md
+++ b/docs/fs.md
@@ -91,7 +91,7 @@ Remove a directory from the file system.
`path` is the name of the directory.
### FS.writeSync
-`number writeSync(object fd, [String|Buffer] data, number offset, number length, optional number position);`
+`number writeSync(object fd, Buffer data, number offset, number length, optional number position);`
Write bytes to an opened file.