From 896e4007742dd72a799cd1be66f20938f10d1c9f Mon Sep 17 00:00:00 2001 From: Bilal2453 Date: Wed, 11 May 2022 18:39:10 +0300 Subject: [PATCH 1/2] fs: fix fchmodSync bad syntax --- doc/api/fs.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/fs.markdown b/doc/api/fs.markdown index 7fd8b13..f3712c2 100644 --- a/doc/api/fs.markdown +++ b/doc/api/fs.markdown @@ -274,7 +274,7 @@ Sync chmod. Asynchronous fchmod(2). No arguments other than a possible exception are given to the completion callback. -## fs.fchmodSync(fd, mode0 +## fs.fchmodSync(fd, mode) Sync fchmod From 292bd6af53bcf7085d034578db3e2c7b2804765a Mon Sep 17 00:00:00 2001 From: Bilal2453 Date: Wed, 11 May 2022 18:43:37 +0300 Subject: [PATCH 2/2] fs: fix fs.read optional argument's syntax --- doc/api/fs.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/fs.markdown b/doc/api/fs.markdown index f3712c2..bd8cc65 100644 --- a/doc/api/fs.markdown +++ b/doc/api/fs.markdown @@ -81,7 +81,7 @@ the end of the file. Synchronous version of `fs.open()`. Returns an integer representing the file descriptor. -## fs.read(fd, [, size, offset], callback) +## fs.read(fd[, size, offset], callback) Read data from the file specified by `fd`.