Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fd94621

Browse filesBrowse files
juanarboltargos
authored andcommitted
doc: fix fs.symlink code example
Fixes: #40413 PR-URL: #40414 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 404730a commit fd94621
Copy full SHA for fd94621

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Open diff view settings
Collapse file

‎doc/api/fs.md‎

Copy file name to clipboardExpand all lines: doc/api/fs.md
+5-5Lines changed: 5 additions & 5 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -3756,15 +3756,15 @@ Relative targets are relative to the link’s parent directory.
37563756
```mjs
37573757
import { symlink } from 'fs';
37583758
3759-
symlink('./mew', './example/mewtwo', callback);
3759+
symlink('./mew', './mewtwo', callback);
37603760
```
37613761

3762-
The above example creates a symbolic link `mewtwo` in the `example` which points
3763-
to `mew` in the same directory:
3762+
The above example creates a symbolic link `mewtwo` which points to `mew` in the
3763+
same directory:
37643764

37653765
```bash
3766-
$ tree example/
3767-
example/
3766+
$ tree .
3767+
.
37683768
├── mew
37693769
└── mewtwo -> ./mew
37703770
```

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.