Description
I found a small mistake in the documentation for fs.lstat
. It looks like a backtick was misplaced somewhere.
How it is:
Retrieves the <fs.Stats> for the symbolic link referred to by the path. The callback gets two arguments (err, stats)
where stats is a {fs.Stats} object.
lstat()is identical to
stat(), except that if
path` is a symbolic link, then the link itself is stat-ed, not the file that it refers to.
Retrieves the [<fs.Stats>](https://nodejs.org/api/fs.html#fs_class_fs_stats) for the symbolic link referred to by the path. The
callback gets two arguments `(err, stats)` where stats is a {`fs.Stats<!-- Missing backtick here -->} object. `lstat()`is
identical to`stat()`, except that if `path` is a symbolic link, then the link itself is stat-ed, not the file that it refers to.
How it should be:
Retrieves the <fs.Stats> for the symbolic link referred to by the path. The callback gets two arguments (err, stats)
where stats is a {fs.Stats
} object. lstat()
is identical tostat()
, except that if path
is a symbolic link, then the link itself is stat-ed, not the file that it refers to.
Retrieves the [<fs.Stats>](https://nodejs.org/api/fs.html#fs_class_fs_stats) for the symbolic link referred to by the path. The
callback gets two arguments `(err, stats)` where stats is a {`fs.Stats`} object. `lstat()`is
identical to`stat()`, except that if `path` is a symbolic link, then the link itself is stat-ed, not the file that it refers to.
I can only assume that the documentation is in markdown, so I have given markdown code.