Skip to content

Commit f90227b

Browse files
martforsrvagg
authored andcommitted
doc: move fs.existsSync() deprecation message
This commit moves the deprecation message for fs.existsSync() above the function description, making message placement uniform across the documentation. PR-URL: #3942 Reviewed-By: Colin Ihrig <[email protected]>
1 parent 54aafa1 commit f90227b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/fs.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -364,11 +364,11 @@ non-existent.
364364

365365
## fs.existsSync(path)
366366

367+
Stability: 0 - Deprecated: Use [fs.statSync][] or [fs.accessSync][] instead.
368+
367369
Synchronous version of [`fs.exists`][].
368370
Returns `true` if the file exists, `false` otherwise.
369371

370-
Stability: 0 - Deprecated: Use [fs.statSync][] or [fs.accessSync][] instead.
371-
372372
## fs.fchmod(fd, mode, callback)
373373

374374
Asynchronous fchmod(2). No arguments other than a possible exception

0 commit comments

Comments
 (0)