Skip to content

[Documentation]: Typo (likely misplaced "`") #38257

Closed
@SiddharthShyniben

Description

@SiddharthShyniben

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 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<!-- 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.fsIssues and PRs related to the fs subsystem / file system.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions