Skip to content

Commit 91bb735

Browse files
doc: review comments
1. use <code> tag 2. bottom bookmark for File Access Constants 3. typo fix Closes: nodejs#20049
1 parent 37abf87 commit 91bb735

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

doc/api/fs.md

+12-11
Original file line numberDiff line numberDiff line change
@@ -746,10 +746,9 @@ changes:
746746

747747
Tests a user's permissions for the file or directory specified by `path`.
748748
The `mode` argument is an optional integer that specifies the accessibility
749-
checks to be performed. Check
750-
[`File Access Contants`](#fs_file_access_constants) for possible values of
751-
`mode`. It is possible to create a mask consisting of the bitwise OR of two or
752-
more values (e.g. `fs.constants.W_OK | fs.constants.R_OK`).
749+
checks to be performed. Check [File Access Constants][] for possible values
750+
of `mode`. It is possible to create a mask consisting of the bitwise OR of
751+
two or more values (e.g. `fs.constants.W_OK | fs.constants.R_OK`).
753752

754753
The final argument, `callback`, is a callback function that is invoked with
755754
a possible error argument. If any of the accessibility checks fail, the error
@@ -882,11 +881,12 @@ changes:
882881
* `path` {string|Buffer|URL}
883882
* `mode` {integer} **Default:** `fs.constants.F_OK`
884883

885-
Synchronously tests a user's permissions for the file or directory specified by
886-
`path`. The `mode` argument is an optional integer that specifies the
887-
accessibility checks to be performed. Check [`File Access Contants`](#fs_file_access_constants) for
888-
possible values of `mode`. It is possible to create a mask consisting of the
889-
bitwise OR of two or more values (e.g. `fs.constants.W_OK | fs.constants.R_OK`).
884+
Synchronously tests a user's permissions for the file or directory specified
885+
by `path`. The `mode` argument is an optional integer that specifies the
886+
accessibility checks to be performed. Check [File Access Constants][] for
887+
possible values of `mode`. It is possible to create a mask consisting of
888+
the bitwise OR of two or more values
889+
(e.g. `fs.constants.W_OK | fs.constants.R_OK`).
890890

891891
If any of the accessibility checks fail, an `Error` will be thrown. Otherwise,
892892
the method will return `undefined`.
@@ -4316,7 +4316,7 @@ The following constants are meant for use with [`fs.access()`][].
43164316
<td><code>F_OK</code></td>
43174317
<td>Flag indicating that the file is visible to the calling process.
43184318
This is useful for determining if a file exists, but says nothing
4319-
about rwx permissions. Default if no mode is specified.</td>
4319+
about <code>rwx</code> permissions. Default if no mode is specified.</td>
43204320
</tr>
43214321
<tr>
43224322
<td><code>R_OK</code></td>
@@ -4331,7 +4331,7 @@ The following constants are meant for use with [`fs.access()`][].
43314331
<td><code>X_OK</code></td>
43324332
<td>Flag indicating that the file can be executed by the calling
43334333
process. This has no effect on Windows
4334-
(will behave like fs.constants.F_OK).</td>
4334+
(will behave like <code>fs.constants.F_OK</code>).</td>
43354335
</tr>
43364336
</table>
43374337

@@ -4694,3 +4694,4 @@ the file contents.
46944694
[Naming Files, Paths, and Namespaces]: https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx
46954695
[MSDN-Using-Streams]: https://msdn.microsoft.com/en-us/library/windows/desktop/bb540537.aspx
46964696
[support of file system `flags`]: #fs_file_system_flags
4697+
[File Access Constants]: #fs_file_access_constants

0 commit comments

Comments
 (0)